Vagrant と Chef で プログラマブルな 開発環境をつくる
by
aereal
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Vagrant ͱ Chef Ͱ ϓϩάϥϚϒϧͳ ։ൃڥΛͭ͘Δ id:aereal 139݄21༵
Slide 2
Slide 2 text
id:aereal @aereal aereal aereal.org 139݄21༵
Slide 3
Slide 3 text
Ruby JavaScript Perl Io Zsh VimScript Lua Go 139݄21༵
Slide 4
Slide 4 text
Ruby JavaScript Perl Io Zsh VimScript Lua Go 139݄21༵
Slide 5
Slide 5 text
Web ΞϓϦέʔγϣϯ 139݄21༵
Slide 6
Slide 6 text
•Model •DBI •View •JSON::XS •Text::Xslate •Controller •(Router::Simple) 139݄21༵
Slide 7
Slide 7 text
•LWP::UserAgent, Furl •XML::*, YAML::Syck •Email::* •Image::Magick 139݄21༵
Slide 8
Slide 8 text
ෳࡶͳґଘؔ 139݄21༵
Slide 9
Slide 9 text
ґଘͷղܾ 139݄21༵
Slide 10
Slide 10 text
Web αʔϏε 139݄21༵
Slide 11
Slide 11 text
OS 139݄21༵
Slide 12
Slide 12 text
ຊ൪ •CentOS ։ൃ •OS X •Windows •Linux (Debian) 139݄21༵
Slide 13
Slide 13 text
ߏཧ 139݄21༵
Slide 14
Slide 14 text
ຊ൪ •Chef •RPM ։ൃ •cpanm •Homebrew •apt •yum 139݄21༵
Slide 15
Slide 15 text
ͱΓ͋͑ͣ cpanm --installdeps . 139݄21༵
Slide 16
Slide 16 text
ͳΜ͔ࣦഊ͢Δ 139݄21༵
Slide 17
Slide 17 text
cpanm --installdeps . 139݄21༵
Slide 18
Slide 18 text
ͳΜ͔ࣦഊ͢Δ 139݄21༵
Slide 19
Slide 19 text
cpanm \ --installdeps . 139݄21༵
Slide 20
Slide 20 text
ͳΜ͔ࣦഊ͢Δ 139݄21༵
Slide 21
Slide 21 text
͏ͩ 139݄21༵
Slide 22
Slide 22 text
ͳΜͱ͔͢Δ 139݄21༵
Slide 23
Slide 23 text
จॻΛ͢ 139݄21༵
Slide 24
Slide 24 text
•ܦҢɺจ຺Λ͢ •ʮ݁ہͲ͏͢Ε͍͍͔ʯԕ͍ •Ϟνϕʔγϣϯͷফඅ •Ϟνϕʔγϣϯ༗ݶ •ʮͱʹ͔͘ؤுΔʯ 139݄21༵
Slide 25
Slide 25 text
ϓϩάϥϚϒϧͳ ηοτΞοϓํ๏ 139݄21༵
Slide 26
Slide 26 text
•୯७࡞ۀͷੵΈॏͶ •ΦϓγϣϯҾͷࢼߦࡨޡͱ͔ •ϩά͕Δ •յΕͨ͜ͱ͕͙͢ʹΘ͔Δ 139݄21༵
Slide 27
Slide 27 text
139݄21༵
Slide 28
Slide 28 text
•VM Λ্ཱͪ͛Δ •(Ҏલʹ͍ͬͯͨ) •ϋʔυΣΞਐԽ͕ͨ͠…… 139݄21༵
Slide 29
Slide 29 text
139݄21༵
Slide 30
Slide 30 text
୮ਫ਼͜Ίͯ࡞ͬͨ VM Πϝʔδ 139݄21༵
Slide 31
Slide 31 text
୮ਫ਼͜Ίͯ࡞ͬͨ VM Πϝʔδ R.I.P. 139݄21༵
Slide 32
Slide 32 text
•NFS ͰήετͱϦϙδτϦΛڞ༗͢Δ •Virtualbox ͷ shared folder ͍ •࠷େ20ഒ͍…… • http://docs-v1.vagrantup.com/v1/docs/nfs.html •MySQL ͳͲ Cookbook Λ༻ҙ͢Δ 139݄21༵
Slide 33
Slide 33 text
•perl-build Ͱ Perl 5.8.8 ΛೖΕΔ •tokuhirom/perl-build •CPAN Ϟδϡʔϧ Cookbook ʹهड़ •όʔδϣϯΛࢦఆͯ͠Πϯετʔϧ͢Δ LWRP •ผʹ Carton ԽਐΊ͍ͯΔ 139݄21༵
Slide 34
Slide 34 text
• ./bin/server • vagrant up • vagrant ssh-config --host vagrant > .ssh_config • ssh "cd /repos; perl server.up $@" 139݄21༵
Slide 35
Slide 35 text
•VM Λ্ཱͪ͛ͯ •ssh_config Λͭͬͯ͘ •SSH Ͱήετ OS ্ͰεΫϦϓτΛ࣮ߦ •Proclet 139݄21༵
Slide 36
Slide 36 text
͙͢ʹ։ൃ͍ͨ͠!!! 139݄21༵
Slide 37
Slide 37 text
•provisioning ·Ͱࡁ·ͤͨ box ΛΔ •ࣾϑΝΠϧαʔό •FTP ΞΫηεՄ 139݄21༵
Slide 38
Slide 38 text
http://git.io/PBG-og ※༧ఆ 139݄21༵
Slide 39
Slide 39 text
՝ 139݄21༵
Slide 40
Slide 40 text
•ೋॏཧͳͷͦͷ·· •ຊ൪ʹద༻͞ΕΔ Chef Ϩγϐͱ࿈ܞ •ϝϯς͍ͯ͠Δͷ͚ࣗͩ •ݟΛΊ͍͖͍ͯͨ 139݄21༵
Slide 41
Slide 41 text
ͳʹͱ͋Ε 139݄21༵
Slide 42
Slide 42 text
Vagrant + Chef ࠷ߴ! 139݄21༵
Slide 43
Slide 43 text
Vagrant + Chef ࠷ߴ? 139݄21༵
Slide 44
Slide 44 text
NOT ۜͷؙ 139݄21༵
Slide 45
Slide 45 text
•όʔδϣϯ੍͕ڧ͍ •CPAN Ϟδϡʔϧ •ϛυϧΣΞ •৽ͨʹ։ൃʹࢀՃ͢Δਓ͕Ұఆ͍Δ •Πϯλʔϯ •ҟಈ 139݄21༵
Slide 46
Slide 46 text
Θͣʹ͢Ήͷ͕ཧ 139݄21༵
Slide 47
Slide 47 text
•Carton •plenv / perlbrew •(Chef Solo) 139݄21༵
Slide 48
Slide 48 text
ෳࡶ͞ͷঈΛ͔Ε 139݄21༵
Slide 49
Slide 49 text
Fin. 139݄21༵