Dockerを使ったPHPアプリ開発とCIについて

 Dockerを使ったPHPアプリ開発とCIについて

PHP-BLT #6

F04982ad61107b5408ad139966596316?s=128

Ryo Tomidokoro

February 22, 2017
Tweet

Transcript

  1. %PDLFSΛ࢖ͬͨ1)1ΞϓϦ։ൃ ͱ$*ʹ͍ͭͯ 1)1#-5 !IBOIBO

  2. ΞδΣϯμ  %PDLFSͰ1)1ΞϓϦ։ൃ͢Δ࣌ͷߏ੒  %PDLFS࢖ͬͨ։ൃͰਏ͔ͬͨ͜ͱ  $PEFTIJQ1SPͰ$*ͯ͠Έͨαϯϓϧ

  3. 1)1ΞϓϦ։ൃ࣌ͷߏ੒ -BSBWFMͷ৔߹

  4. ࠓ·Ͱͷ։ൃͷ৔߹ ϦϙδτϦϧʔτʹΞϓϦέʔγϣϯΛ഑ஔ

  5. %PDLFSͰͷ։ൃͷ৔߹ ϧʔτʹ͸%PDLFSpMF MBSBWFMΞϓϦ͸ҰஈԼ͛ͯ഑ஔ

  6. QIQGQN͚ͩ͡Όಈ͔ͳ͍ͷͰ

  7. EPDLFSDPNQPTFΛ࢖͏ ࠷ۙͷ%PDLFS'PS.BDͩͱඪ४Ͱ͍ͭͯ͘Δ

  8. ͜Μͳத਎ ։ൃ؀ڥʹඞཁͳίϯςφΛ഑ஔ͢Δ

  9. ϦϙδτϦϧʔτͰ EPDLFSDPNQPTFVQE

  10. ίϯςφ্ཱ͕͕ͪΔ PHP-FPM MySQL Nginx

  11. -BSBWFMಈ͘

  12. %PDLFS࢖ͬͨ։ൃͰਏ͔ͬͨ͜ͱ

  13. ֤ࣗͷ։ൃ؀ڥͷEPDLFSΛ࠷৽ʹ͠ͱ͚͹େৎ෉ ͦ͏ࢥͬͯͨ࣌୅΋͋ͬͨɾɾɾ

  14. $*໘౗͍͘͞໰୊  %PDLFSͷϦϦʔεʹ$*͕௥ਵग़དྷͳ͍  Ұ෦ͷػೳ͕࢖͑ͳ͔ͬͨΓ DBDIFͱ͔   DPNQPTF͸ɺجຊతʹࣗྗͰಋೖ

  15. ֤$*ͷରԠঢ়گ CI Engine Compose Circle CI 1.09 (beta 1.12) ࣗྗಋೖ

    Travis CI 1.12.3 ࣗྗಋೖ Codeship 1.12 ಋೖࡁΈ จ๏͸v1 &OHJOFͷ࠷৽όʔδϣϯ͸
  16. DPNQPTFͷόʔδϣϯʹ͍ͭͯ Compose Engine จ๏ ~1.6.x 1.09 v1 1.6.x~ 1.10 v2

    1.6.x~ 1.12 v2.1 1.9.x~ 1.13 v3 WͰWͷػೳ͕࢖͑ͳ͔ͬͨΓ΋͢Δ
  17. %PDLFSͷഁյతมߋ w dWͰϏϧυͯ͠ϨδετϦʹQVTI w WdͰ͸QVMMग़དྷͳ͍ɻ http://docs.docker.jp/engine/breaking_changes.html

  18. ରࡦ  $*ϑΝʔετͰ؀ڥߏங  αϯϓϧΛ୳͓ͯ͘͠  ؤுΔ

  19. $PEFTIJQ1SPͰ$*ͯ͠Έͨαϯϓϧ

  20. $PEFTIJQ1SPͷಛ௃  ઃఆϑΝΠϧ͕ͦͷ··EPDLFSDPNQPTF  ຖ݄Ϗϧυ·Ͱ͸QSJWBUFͰ΋ແྉ  CVJMEDBDIF͕ͪΌΜͱ͖͘  DPNQPTFͷจ๏͕ಠࣗɻ͔ͭݹ͍ɻ ͱ͸͍͑ɺDPNQPTFΛωΠςΟϒͰαϙʔτ͍ͯ͠Δͷ

    Ͱɺݸਓతʹ͘͢͝ظ଴͍ͯ͠Δ
  21. -BSBWFMΛ͓࢖͍ͷํ Լهʹαϯϓϧ্͛ͯஔ͖·ͨ͠ɻ https://github.com/hanhan1978/docker-laravel54-skelton

  22. ͓·͚  -BSBWFMͷ%VTLΛ࣮ߦ  $PEFTIJQͰ$*  Τϥʔ͕͋ͬͨΒεΫϦʔϯγϣοτ Λऔͬͯ4MBDL௨஌ ϑϩϯτΤϯυͷςετͳͷͰεΫγϣ ͕͋Δͱ௙Δ͸ͣ

  23. ࢥͬͨΑΓΠέͯΔײ͕ग़ͨ

  24. ͓·͚ ͭͿ΍͍ͨΒ5γϟπ΋Β͑ͨ