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
phpcon2016_LT_koala-dev-env
Search
ueshiy
November 05, 2016
2
2k
phpcon2016_LT_koala-dev-env
ueshiy
November 05, 2016
Tweet
Share
More Decks by ueshiy
See All by ueshiy
phpcondo2017_15min_AMP
ueshiy
0
290
phpconfuk2017_LT_JSON-LD
ueshiy
2
360
yapcasia8oji2016mid_LT_vagrant-up-up
ueshiy
0
610
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
93
13k
Done Done
chrislema
181
16k
Faster Mobile Websites
deanohume
304
30k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
22k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Building an army of robots
kneath
302
42k
Code Review Best Practice
trishagee
64
17k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
7.9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
664
120k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Transcript
ίΞϥͷ։ൃڥճސ @uessy_akr
͡Ί·ͯ͠ɻ id: @uessy_akr, name: ͏͑͠ʔ, description: ओʹTwitterʹੜଉ͍ͯ͠ΔίΞϥ, work: σΟϨΫγϣϯ ٴͼ
։ൃ at
։ൃڥɺͲ͏ͯ͠·͔͢ʁ
ύλʔϯͦͷ̍ ։ൃڥɺͲ͏ͯ͠·͔͢ʁ ࣾ։ൃڥ
ύλʔϯͦͷ̍ ։ൃڥɺͲ͏ͯ͠·͔͢ʁ • ෳਓͰڞ༗ • ฤूதͷϑΝΠϧ͕ඃͬͨ࣌ͷ൵ܶ • Ͳ͜Ͱ git commit
͢Δͷ͔ʁ • ಥग़ݱ͢Δ ୭͔ͷ var_dump() • ͭΒ͍
ύλʔϯͦͷ̎ ։ൃڥɺͲ͏ͯ͠·͔͢ʁ ࣾ։ൃڥ
ύλʔϯͦͷ̎ ։ൃڥɺͲ͏ͯ͠·͔͢ʁ • ൃੜ࣌ʹଞਓΛר͖ఴ͑ʹ͢ΔՄೳੑ • Ͳ͜Ͱ git commit ͢Δͷ͔ʁ •
ϩʔΧϧϦϙδτϦΛPCଆʹஔ͍͓͖͍ͯͨ ߹ʹͭΒ͍
• ѻ͍͕؆୯Ͱ • ෳ→ల։͘͢͠ • ιʔεϑΝΠϧϩʔΧϧʹ • ։ൃڥ্ͷϑΝΠϧಉظࣗಈͰ • ঢ়ଶͷΓ͠Λָʹ
खܰʹखݩʹཉ͍͠ΑͶ ։ൃڥɺͲ͏ͯ͠·͔͢ʁ
Vagrant
Vagrant ϋΠύʔόΠβܕԾԽ Ծαʔό ήετOS ϛυϧΣΞ ΞϓϦ Ծαʔό ήετOS ϛυϧΣΞ ΞϓϦ
ϗετOS
Vagrant ϝϦοτ • ͦͷ࣌ͰͷVMͷதΛ·Δͬͱ "box" ʹͰ͖Δ • DBͷ༰ؚΊશ͘ಉ͡ڥΛڞ༗͍͢͠ • 1ͭͷVMʹશͯ·ͱ·ΔͷͰγϯϓϧ
• ήετϚγϯ্Ͱͷࣗ༝͕ߴ͍
Vagrant σϝϦοτ • ىಈ͕͍ • ϝϞϦσΟεΫͷফඅ͕ܹ͍͠
Docker
Docker ίϯςφܕԾԽ ΞϓϦ ϛυϧΣΞ ίϯςφ ΞϓϦ ϛυϧΣΞ ίϯςφ ϗετOS
Vagrant ϋΠύʔόΠβܕԾԽ Ծαʔό ήετOS ϛυϧΣΞ ΞϓϦ Ծαʔό ήετOS ϛυϧΣΞ ΞϓϦ
ϗετOS
Docker ίϯςφܕԾԽ ΞϓϦ ϛυϧΣΞ ίϯςφ ΞϓϦ ϛυϧΣΞ ίϯςφ ϗετOS
Docker ϝϦοτ • ىಈ͕͍ • ϝϞϦσΟεΫͷফඅൺֱతগͳ͍ • ϓϨʔϯͳڥΛԿ࡞ɾഁغͰ͖Δ • ຊ൪ڥ(ˍϦϦʔε)ʹద༻͞ΕΔ͜ͱ
Docker σϝϦοτ • ʮσʔλͷอଘʯʹҰख͍ؒΔ • ߏ͕ෳࡶԽ͍͢͠
·ͱΊ
·ͱΊ ࣅͯΔͱ͜Ζ • ެࣜͰ͞Ε͍ͯΔbox/Πϝʔδ͕๛ • ઃఆϑΝΠϧʹڥઃఆΛ·ͱΊΒΕΔ • ಉ͡ڥͷෳˠڞ༗ָ͕ʹߦ͑Δ • ڥߏஙͷࣗಈԽ
• ҙͷ࣌ͷঢ়ଶͷΓ͕͠༰қ • ϗετϚγϯͱͷσΟϨΫτϦಉظ͕ศར
·ͱΊ σΟϨΫτϦͷಉظ͕ศར Vagrantfile ͕͋Δ σΟϨΫτϦ /vagrant (Ճ) ҙͷσΟϨΫτϦ (Ճ) ҙͷσΟϨΫτϦ
gitཧιʔε υΩϡϝϯτϧʔτԼ ֘σΟϨΫτϦ
·ͱΊ ҧ͏ͱ͜Ζ • ىಈ • ࣗ༝ͷࠩ • ߏͷγϯϓϧ͞ • ద༻͖͢ڥ
·ͱΊ ։ൃڥϓϩδΣΫτʹ߹Θͤͯબ • ։ൃϑϩʔ • ຊ൪ڥͷߏ • ΞϓϦέʔγϣϯͷੑ࣭ • ӡ༻ɾཧ
·ͱΊ ։ൃڥϓϩδΣΫτʹ߹Θͤͯબ ։ൃڥͷརศੑ্͕͕Ε ։ൃޮ্͕Γ·͢ʂ ʮڥͷ࠷దԽʯେࣄͰ͢Ͷɻ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠