Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Docker on PHP7

Docker on PHP7

PHP7を自分のサイトに乗っける手段として、Dockerをつかいました。PHP7の動向を追いかけられるし、バージョンアップも楽にできるようになってうれしいことづくめなんですが…色々フィードバックいただきましてありがとうございます。

D5c60d3b90d3e0ad0c190adb197e45d1?s=128

てきめん tekimen

March 05, 2016
Tweet

More Decks by てきめん tekimen

Other Decks in Technology

Transcript

  1. %PDLFSPO1)1 ࣗ෼ͷαΠτʹ%PDLFS͔ͭͬͨ࿩

  2. ΅͘ɺ͖ͯΊΜʂ w ʮ͖ͯͱ͏ʯʮΊΜͲ͍ʯͷུσεʼʻ w l%PO`UUIJOL GFFMzBOEl-B[JOFTTz w ͍͞ͱIUUQUFLJUPINFNEIPJJOGP w UXJUUFS!ZPVLJEFBSJUBJ

    w GBDFCPPLZPVLJEFBSJUBJZVZBIBNBEB
  3. 1)1ͷ࠷ۙ ܥ͔Βܥ΁

  4. 1)1͕ϦϦʔεʂ ͶΜ͕ͭʹͪ

  5. ͔͍͍ͬͦͭͨ͘͞ʂ

  6. αΠτͷߏ੒ w %FCJBO(/6-JOVYKFTTJF w $BLF1)1ܥ w $BLF1)1ܥ͔ΒҾ͖ܧ͗Ҿ͖ܧ͗ʜ w 1PTUHSF42- w

    %FW0QT w "OTJCMF w 'BCSJD
  7. Αͬ͠ΌίϯύΠϧ͡Ό w ੲͷ΃ͪͺʔ ʹݶΒͳ͍͔ ͸ίϯύΠϧͯͨ͠ w ͔͠͠ɺαʔόʔ্ͰίϯύΠϧ͸ࣗࡴߦҝ w όʔδϣϯ্͛ΒΕͳ͍ʼʻ w

    ࣗՈ൛EFC΍SQNΛ࡞ͬͯӡ༻΋͋ͬͨ w ΍ͬͺΓެࣜϦϙδτϦͩΑͶʋ ?ɻ? ϊ
  8. ΍ͬͺίϯύΠϧͩͳ w 1)1͸ύοέʔδ·ͩͳ͍ w 1)1Ͳ͏ͯ͠΋࢖͍͍ͨͳʔ w ΍ͬͺίϯύΠϧ͍ͨ͠ͳʔ

  9. %PDLFS ͦΜͳੲͷ൵ܶΛ܁Γฦͯ͠͸ͳΒͳ͍ɻ
 ࠓ͸ίϨ͕͋Δ

  10. ίϯύΠϧͨ͠1)1Λ
 04͝ͱίϯςφʹ
 ͯ͠͠·͑

  11. None
  12. Ͳ͏ͯ͜͠͏ͳͬͨ w ίϯςφʹσʔλΛೖΕΔͱσʔλແͦ͘͠͏ w ϩά͕ಡΊͳ͍ͱࠔΔ w ιʔείʔυ΋ίϯςφʹೖΕΔͱίϯςφͷ༰ྔ ͕๲Ε্͕Δ શ෦ϗετଆʹ࣋ͨͤΑ͏ͱͨ͠

  13. %PDLFSߏ੒ͷมભ ίϯςφʹ௚઀CBTIͰೖͬͯEPDLFSDPNNJU ίϯςφΛ%PDLFSpMFͰ࡞੒ ίϯςφΛ%PDLFSpMFͰ࡞੒͢Δ͕
 0/#6*-%Λ࢖ͬͯίετΛݮΒ͢

  14. ୈஈ֊ CBTIͰίϯςφ಺෦ʹೖͬͯDPNNJU

  15. ίϯςφ಺෦ w BQUHFUJOTUBMMBQBDIFBQBDIFEFWCVJMEFTTFOUJBM BVUPDPOGMJCQREFWMJCYNMEFWMJCJDVEFWMJCECEFW MJCKQFHEFWMJCQOHEFWMJCHJGEFWMJCHEEFWMJCSFBEMJOF EFWMJCHEYQNEFWMJCDVSMPQFOTTMEFWQLHDPOpH w DPOpHVSFŠXJUIBQYTVTSCJOBQYTŠFOBCMF NCTUSJOHŠFOBCMFJOUMŠXJUIQHTRMVTSJODMVEF QPTUHSFTRMŠXJUIQEPQHTRMŠXJUIHEVTSJODMVEF

    ŠXJUIKQFHEJSVTSJODMVEFŠXJUIQOHEJSVTS JODMVEFŠXJUISFBEMJOFVTSJODMVEFŠXJUIYQN EJSVTSJODMVEFŠXJUIPQFOTTM
  16. ͜͜Ͱؾ͕͍ͭͨ͜ͱ w 1)1ͷόʔδϣϯΞοϓʹ͍͍ͪͪखಈͰ΍Βͳ͘ ͯ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ͨͲͱ͍͏࣌ʹศརͦ͏ʂ

  24. 1)1ίϯςφଆ DBUGBCpMFQZҰ෦ׂѪ  DPEJOHVUG  σϓϩΠΛߦ͏ !IPTUT UFLJUPITBLVSB  EFGEFQMPZ

     TTI@DPOpHΛ࢖͑ΔΑ͏ʹ͢Δ FOWVTF@TTI@DPOpH5SVF จࣈ௨ΓDE XJUIDE IPNFUFLJUPI  SVO TVEPEPDLFSQVMMZPVLJEFBSJUBJQIQUNDNBLFS  SVO TVEPEPDLFSCVJMEUZPVLJEFBSJUBJQIQUNDNBLFSQIQUNDNBLFSIPNFUFLJUPI  SVO TVEPTZTUFNDUMTUPQQIQUNDNBLFSEPDLFSTFSWJDF  SVO TVEPTZTUFNDUMTUBSUQIQUNDNBLFSEPDLFSTFSWJDF  GBCEFQMPZͰ͓͠·͍ʋ ?ɻ? ϊ
  25. ͱ͍͏Θ͚Ͱ

  26. 1)1৐͚ͬͨͥ ͏Θɺ΍ͬ΂ʔΘʔɺ91PXFSE#ZϔομͰ1)1ͩͬ ͯόϨͪΌ͏Θʔɺ΍ͬ΂ʔɺ͋ͿͶʔ

  27. σΟεΫ༰ྔ ίϯςφΛফͨ͠ΓΠϝʔδফͨ͠Γʜ

  28. ·ͱΊ w 1)1Λ৐͚͔͔ͬͨͬͨΒ%PDLFSΛ࢖ͬͨ͜ͱͰɺ 1)1ͷΞοϓσʔτΛ௥͍͔͚ΒΕΔΑ͏ʹͳͬͨ w %PDLFS͸͍͢͝ͳͱ͓΋͍·ͨ͠ɻ w 1)1ΛϏϧυ͢Δ෦෼͸HJUIVCʹ͓͚ΔΑ͏ʹͳ Γ·ͨ͠ɻ
 IUUQTHJUIVCDPNZPVLJEFBSJUBJNBLFEPDLFS

    DPOUBJOBSQIQ
  29. ͋Γ͕ͱ͏
 ͍͟͝·ͨ͠