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 + Berkshelf
Search
Yusuke Ando
November 12, 2013
Technology
9
5.9k
Vagrant + Berkshelf
Yusuke Ando
November 12, 2013
Tweet
Share
More Decks by Yusuke Ando
See All by Yusuke Ando
CakePHP3でアプリ開発
yandod
1
340
Shimokita.Unity パーティクルでエフェクト
yandod
0
760
CakePHP3の明るい未来
yandod
1
200
Testing your app with Selenium on Travis CI
yandod
8
3.1k
Testing your app with Selenium on Travis CI
yandod
0
130
Inputで入力を扱う
yandod
0
660
Detonatorで爆発させる勉強会をした報告
yandod
0
2.4k
Mecanimでアニメーション - Shimokita.Unity
yandod
0
720
パリの街をUnityで駆ける
yandod
1
3.4k
Other Decks in Technology
See All in Technology
個人でもIAM Identity Centerを使おう!(アクセス管理編)
ryder472
3
200
EventHub Startup CTO of the year 2024 ピッチ資料
eventhub
0
110
SREが投資するAIOps ~ペアーズにおけるLLM for Developerへの取り組み~
takumiogawa
1
190
Terraform CI/CD パイプラインにおける AWS CodeCommit の代替手段
hiyanger
1
240
RubyのWebアプリケーションを50倍速くする方法 / How to Make a Ruby Web Application 50 Times Faster
hogelog
3
940
Lambda10周年!Lambdaは何をもたらしたか
smt7174
2
110
[CV勉強会@関東 ECCV2024 読み会] オンラインマッピング x トラッキング MapTracker: Tracking with Strided Memory Fusion for Consistent Vector HD Mapping (Chen+, ECCV24)
abemii
0
220
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
7
810
リンクアンドモチベーション ソフトウェアエンジニア向け紹介資料 / Introduction to Link and Motivation for Software Engineers
lmi
4
300k
【令和最新版】AWS Direct Connectと愉快なGWたちのおさらい
minorun365
PRO
5
750
Security-JAWS【第35回】勉強会クラウドにおけるマルウェアやコンテンツ改ざんへの対策
4su_para
0
180
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
470
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Into the Great Unknown - MozCon
thekraken
32
1.5k
Visualization
eitanlees
145
15k
Documentation Writing (for coders)
carmenintech
65
4.4k
A Tale of Four Properties
chriscoyier
156
23k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Code Review Best Practice
trishagee
64
17k
We Have a Design System, Now What?
morganepeng
50
7.2k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Transcript
OBOBQJ!ZBOEP 7BHSBOUͰ/HJOYQIQGQN $IFGͱࠜؾͱ#FSLTIFMG
ZBOEP $BOEZ$BOFQIQ $BLF1)1࣮ફೖ
UFDIBMJTUFSTKQ
1)13VCZ/PEF+BWBରԠ1BB4 $IFGͰ"84ɺ"[VSFΛࣗಈߏங ࣌ؒ༗ਓࢹ 44)TVEPՄೳ͔ͭαϙʔτ༗ εϥΠυͳͲˠ GBDFCPPLDPNFZKBQBO
$IFGͷϔϏʔϢʔβʔ
։ൃڥ ୭ͰඞཁʹͳΔ ଟ࠼ ͗͢Δ ڥ 9".1 .".1 7JSUVBM#PY TZTUFN1)1 ࣮ڥͱԿ͔͕ҧ͏
શ͘ҧ͏
ͦ͜Ͱ7BHSBOU
7BHSBOU ։ൃڥߏஙπʔϧ 7BHSBOUͱ7JSUVBM#PYͷηοτΞοϓ ఆٛϑΝΠϧΛςΩετͰهड़ WBHSBOUVQͰ։ൃڥ͕ىಈ
WBHSBOUVQ Vagrantfile VirtualBox Chef Solo Cookbook ಡΈࠐΈ ىಈ ࣗಈઃఆ ಡΈࠐΈ
ΩοΫ
͍͢͝ ϑΝΠϧ͚ͩͰಉ͡ڥΛ࠶ݱ ςΩετͳͷͰࠩཧͰ͖Δ ͖ͳ*%&ͰΰϦΰϦฤूͰ͖Δ $IFGͷDPPLCPPLΛຊ൪ʹྲྀ༻Ͱ͖Δ ศར͔ͭɺຊͷڥ͕͑Δ
Πϯετʔϧ HFNͰͷΠϯετʔϧඇਪ
5JQT3VCZJO7BHSBOU 7BHSBOUҎ߱3VCZΛಉ͍ࠝͯ͠Δ
WBHSBOUCPY ։ൃڥͷϕʔεʹ͢ΔΠϝʔδ IUUQXXXWBHSBOUCPYFT WBHSBOUCPYBEE\UJUMF^\VSM^ %SPQ#PYͰެ։͢Δͱࢮ͵
None
WBHSBOUJOJU 7BHSBOUpMFΛੜ ϓϩδΣΫτԼͳͲ͕ྑ͍ IPNFʹ࡞Βͳ͍΄͏͕ྑ͍ http://bit.ly/php-vagrant
Vagrant.configure("2") do |config| config.vm.box = "base" config.vm.box_url = "http://dom.com/ a.box"
end
WBHSBOUVQ 7BHSBOUpMFΛݩʹϚγϯΛىಈ WBHSBOUTTIͰTTIͰϩάΠϯՄೳ JEQBTTͷཧෆཁʂ ͜ͷ··ͩͱૉͷΠϝʔδ
DPOpHWNTZODFE@GPMEFS 1$ଆͷϑΥϧμΛ7.ʹϚϯτ υΩϡϝϯτϧʔτʹιʔεΛʂ *%&Ͱฤूͨ͠༰͕ଈ࣌ө GUQɺTDQHJU͕ແͯ͘େৎ
ͦͷଞ DPOpHWNOFUXPSL /"5ઃఆͳͲͷࣗಈԽ WCDVTUPNJ[F ϝϞϦׂΓͯͳͲ ϓϥάΠϯ ଞͷԾԽΫϥυΛར༻Մೳ
DPOpHWNQSPWJTJPO ىಈͨ͠Ϛγϯͷߏஙઃఆ $IFGTPMP 1VQQFU$'&OHJOF4IFMM"OTJCMFՄೳ ΫοΫϒοΫͷύεΛهड़
config.vm.provision :chef_solo do |chef| chef.cookbooks_path = "../my-recipes/cookbooks" chef.add_recipe "mysql" end
$IFG େྲྀߦͷߏஙπʔϧ ϨγϐΛهड़ͯ͠ߏங ωοτ্ʹใ͕ଟ͍ ߚനग़ܾఆڃͷώοτ
package “nginx” template “/etc/nginx/nginx.conf” do source “nginx.conf.erb” end service “nginx”
do action :start end SFDJQF Πϯετʔϧ ઃఆϑΝΠϧίϐʔ αʔϏε։࢝
ཧܗ Vagrantfile Cookbook Ϋϥυ ։ൃڥ ຊ൪ڥ $PPLCPPLͰ։ൃڥͱຊ൪ڥΛಉظ
5*14ΫοΫϒοΫΔ ͦΕ·Ͱಈ͍͍ͯͨΫοΫϒοΫ ͋Δ͔࣌Βಈ͔ͳ͘ͳΔ ύοέʔδͷΞοϓσʔτͳͲ ܧଓతͳϝϯςφϯε͕͔ܽͤͳ͍
Node Node GitHub engineyard.com Node &OHJOF:BSEͷ߹ DIFGTPMP Cookbook BQQMZ &OHJOF:BSE͕࣮ͨ͠Ϩγϐ
Λ8FCͷૢ࡞Ͱඞཁͳ࣌ʹө ΧελϜϨγϐ
ಥવͷ੬ऑੑରԠ
੬ऑੑରԠͳͲΛਵ࣌৴
͜͜·Ͱ Ҏલ͓͠·ͨ͠
7BHSBOU $IFGͷ՝ 7BHSBOUpMFͱผʹΫοΫϒοΫ͕ඞཁ DPPLCPPLTͷॴΛࢦఆ ෳͷΞϓϦͰڞ༻͢Δ࣌ ΫοΫϒοΫෆఆظͰϝϯς͕ඞཁ
ΫοΫϒοΫڞ༗ Vagrantfile Cookbook App1 Vagrantfile App2 Vagrantfile App3
ZBOEPEPNVTVCJ QIQGQNOHJOYͳ ։ൃڥ༻Ϩγϐ
PNVTVCJ 6CVOUVϕʔε εΫϥονͰॻ͍ͨΫοΫϒοΫ QIQ/HJOY$PNQPTFSQIQVOJU NZTRMQPTUHSFTRMJNBHFNBHJDL ඞཁ͔ͩͬͨΒॻ͍ͨϨγϐ
ਖ਼߈๏Ϩγϐಉࠝ
ਖ਼߈๏TVCNPEVMFTVCUSFF
ࠇຐज़DIFGTPMPS ϦϞʔτͷUBSϘʔϧΛల։࣮ͯ͠ߦ
ଥڠશ෦4IFMM ͞ΑͳΒႈੑ
ͲΕ͍·͍ͪ Oճͷϝϯς͕ඞཁ
ͦ͜Ͱ#FSLTIFMG
#FSLTIFMG 3JPU(BNFT $PPLCPPLͷґଘཧπʔϧ CVOEMFSతͳࣄ͕ग़དྷΔ CFSLTJOTUBMMͰ#FSLTpMFΛݩʹऩू ίϛϡχςΟΫοΫϒοΫҎ֎0,
-PDBUJPO
#FSLTIFMGͳΒ ࣗ࡞ͷΫοΫϒοΫΛ֎෦͔Βಋೖ ϓϥΠϕʔτϦϙδτϦ0, 0QT$PEFͱซ༻Մೳ 7BHSBOU#FSLTIFMGϓϥάΠϯͰશࣗಈ
શࣗಈ WBHSBOUQMVHJOJOTUBMMWBHSBOUCFSLTIFMG DPOpHCFSLTIFMGFOBCMFUSVF CFSLTίϚϯυΛ৮Δඞཁແ͠ʂ
#FSLTpMF
7BHSBOUpMF #FSLTGJMFͰऔಘͨ͠ ϨγϐΛࢦఆՄೳʹ
͞Βʹຐվ #FSLTGJMFΛ7BHSBOUGJMF ʹଂͤͯ͞ݟͨ
ҙ ར༻ऀʹ7BHSBOU#FSLTIFMGϓϥάΠϯ ΫοΫϒοΫʹNFUBEBUBSC͕ඞཁ UFTULJUDIFOͳͲͰςετ͕ඞཁ
αϯϓϧ HJUIVCDPNZBOEPEPNVTVCJ HJTUHJUIVCDPNZBOEPE
࣭ʁ