Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Vagrant と Chef で プログラマブルな 開発環境をつくる
Search
aereal
September 21, 2013
Technology
0
2.3k
Vagrant と Chef で プログラマブルな 開発環境をつくる
aereal
September 21, 2013
Tweet
Share
More Decks by aereal
See All by aereal
How to send distibuted traces to Datadog using build own OpenTelemetry-Lambda distribution
aereal
3
210
好きな技術《コト》で、 生きていく技術 / life with what you like
aereal
5
2.4k
qron: Cloud Native Cron Alternativeの今
aereal
2
2.2k
自動作曲入門 / introduction to programatic music composition
aereal
1
530k
はてなブログ タグとCDK / The epic of AWS CDK and Hatena Blog Tag
aereal
3
200k
はてなブログ タグの技術選択 / The technical details of Hatena Blog Tag
aereal
3
200k
ブログサービスのHTTPS化を支えたAWSで作るピタゴラスイッチ / The construction of large scale TLS certificates management system with AWS
aereal
3
400k
AWSではてなブログの常時HTTPS配信をバーンとやる話 / The Epic of migration from HTTP to HTTPS on Hatena Blog with AWS
aereal
14
17k
ScalaとPerlでMicroservices in production / Building microservices with Perl and Scala in production
aereal
0
5.4k
Other Decks in Technology
See All in Technology
Web APIをなぜつくるのか
mikanichinose
0
440
【re:Invent 2024 アプデ】 Prompt Routing の紹介
champ
0
200
「完全に理解したTalk」完全に理解した
segavvy
1
180
AWS環境におけるランサムウェア攻撃対策の設計
nrinetcom
PRO
0
220
1等無人航空機操縦士一発試験 合格までの道のり ドローンミートアップ@大阪 2024/12/18
excdinc
0
190
LINEヤフーのフロントエンド組織・体制の紹介【24年12月】
lycorp_recruit_jp
0
560
プロダクト組織で取り組むアドベントカレンダー/Advent Calendar in Product Teams
mixplace
0
430
Qiita埋め込み用スライド
naoki_0531
0
5.3k
多領域インシデントマネジメントへの挑戦:ハードウェアとソフトウェアの融合が生む課題/Challenge to multidisciplinary incident management: Issues created by the fusion of hardware and software
bitkey
PRO
2
120
日本版とグローバル版のモバイルアプリ統合の開発の裏側と今後の展望
miichan
1
140
ハイテク休憩
sat
PRO
2
180
クレカ・銀行連携機能における “状態”との向き合い方 / SmartBank Engineer LT Event
smartbank
2
110
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
33
3k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Faster Mobile Websites
deanohume
305
30k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
The Language of Interfaces
destraynor
155
24k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Documentation Writing (for coders)
carmenintech
67
4.5k
KATA
mclloyd
29
14k
It's Worth the Effort
3n
183
28k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Statistics for Hackers
jakevdp
796
220k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
Transcript
Vagrant ͱ Chef Ͱ ϓϩάϥϚϒϧͳ ։ൃڥΛͭ͘Δ id:aereal 139݄21༵
id:aereal @aereal aereal aereal.org 139݄21༵
Ruby JavaScript Perl Io Zsh VimScript Lua Go 139݄21༵
Ruby JavaScript Perl Io Zsh VimScript Lua Go 139݄21༵
Web ΞϓϦέʔγϣϯ 139݄21༵
•Model •DBI •View •JSON::XS •Text::Xslate •Controller •(Router::Simple) 139݄21༵
•LWP::UserAgent, Furl •XML::*, YAML::Syck •Email::* •Image::Magick 139݄21༵
ෳࡶͳґଘؔ 139݄21༵
ґଘͷղܾ 139݄21༵
Web αʔϏε 139݄21༵
OS 139݄21༵
ຊ൪ •CentOS ։ൃ •OS X •Windows •Linux (Debian) 139݄21༵
ߏཧ 139݄21༵
ຊ൪ •Chef •RPM ։ൃ •cpanm •Homebrew •apt •yum 139݄21༵
ͱΓ͋͑ͣ cpanm --installdeps . 139݄21༵
ͳΜ͔ࣦഊ͢Δ 139݄21༵
cpanm --installdeps . 139݄21༵
ͳΜ͔ࣦഊ͢Δ 139݄21༵
cpanm \ --installdeps . 139݄21༵
ͳΜ͔ࣦഊ͢Δ 139݄21༵
͏ͩ 139݄21༵
ͳΜͱ͔͢Δ 139݄21༵
จॻΛ͢ 139݄21༵
•ܦҢɺจ຺Λ͢ •ʮ݁ہͲ͏͢Ε͍͍͔ʯԕ͍ •Ϟνϕʔγϣϯͷফඅ •Ϟνϕʔγϣϯ༗ݶ •ʮͱʹ͔͘ؤுΔʯ 139݄21༵
ϓϩάϥϚϒϧͳ ηοτΞοϓํ๏ 139݄21༵
•୯७࡞ۀͷੵΈॏͶ •ΦϓγϣϯҾͷࢼߦࡨޡͱ͔ •ϩά͕Δ •յΕͨ͜ͱ͕͙͢ʹΘ͔Δ 139݄21༵
139݄21༵
•VM Λ্ཱͪ͛Δ •(Ҏલʹ͍ͬͯͨ) •ϋʔυΣΞਐԽ͕ͨ͠…… 139݄21༵
139݄21༵
୮ਫ਼͜Ίͯ࡞ͬͨ VM Πϝʔδ 139݄21༵
୮ਫ਼͜Ίͯ࡞ͬͨ VM Πϝʔδ R.I.P. 139݄21༵
•NFS ͰήετͱϦϙδτϦΛڞ༗͢Δ •Virtualbox ͷ shared folder ͍ •࠷େ20ഒ͍…… • http://docs-v1.vagrantup.com/v1/docs/nfs.html
•MySQL ͳͲ Cookbook Λ༻ҙ͢Δ 139݄21༵
•perl-build Ͱ Perl 5.8.8 ΛೖΕΔ •tokuhirom/perl-build •CPAN Ϟδϡʔϧ Cookbook ʹهड़
•όʔδϣϯΛࢦఆͯ͠Πϯετʔϧ͢Δ LWRP •ผʹ Carton ԽਐΊ͍ͯΔ 139݄21༵
• ./bin/server • vagrant up • vagrant ssh-config --host vagrant
> .ssh_config • ssh "cd /repos; perl server.up $@" 139݄21༵
•VM Λ্ཱͪ͛ͯ •ssh_config Λͭͬͯ͘ •SSH Ͱήετ OS ্ͰεΫϦϓτΛ࣮ߦ •Proclet 139݄21༵
͙͢ʹ։ൃ͍ͨ͠!!! 139݄21༵
•provisioning ·Ͱࡁ·ͤͨ box ΛΔ •ࣾϑΝΠϧαʔό •FTP ΞΫηεՄ 139݄21༵
http://git.io/PBG-og ※༧ఆ 139݄21༵
՝ 139݄21༵
•ೋॏཧͳͷͦͷ·· •ຊ൪ʹద༻͞ΕΔ Chef Ϩγϐͱ࿈ܞ •ϝϯς͍ͯ͠Δͷ͚ࣗͩ •ݟΛΊ͍͖͍ͯͨ 139݄21༵
ͳʹͱ͋Ε 139݄21༵
Vagrant + Chef ࠷ߴ! 139݄21༵
Vagrant + Chef ࠷ߴ? 139݄21༵
NOT ۜͷؙ 139݄21༵
•όʔδϣϯ੍͕ڧ͍ •CPAN Ϟδϡʔϧ •ϛυϧΣΞ •৽ͨʹ։ൃʹࢀՃ͢Δਓ͕Ұఆ͍Δ •Πϯλʔϯ •ҟಈ 139݄21༵
Θͣʹ͢Ήͷ͕ཧ 139݄21༵
•Carton •plenv / perlbrew •(Chef Solo) 139݄21༵
ෳࡶ͞ͷঈΛ͔Ε 139݄21༵
Fin. 139݄21༵