Save 37% off PRO during our Black Friday Sale! »

GAEにPHPアプリを継続的デプロイする/phpcon-kansai-2018

 GAEにPHPアプリを継続的デプロイする/phpcon-kansai-2018

Google AppEngine Standard Editionは、PHPのバージョンが少し古いなど難点もありますが、PaaS基盤として選択肢の1つであると思います。 かつてGoogleDeveloperブログにGAEへのPUSH TO DEPROYのやり方が掲載されましたが、後に削除され今では幻です。では今どうやったら良いのか? GAEへデプロイする最新情報をお届けします。

C4c161ae9eeeed8f161197410f7a228a?s=128

Kenichiro Kishida

July 14, 2018
Tweet

Transcript

  1. ("&ʹ
 1)1ΞϓϦΛ
 ܧଓతσϓϩΠ͢Δ 1)1$POGFSFODF,BOTBJ ,FOJDIJSP,JTIJEB !TJ[VIJLP

  2. ,FOJDIJSP,JTIJEB 5PLZP +"1"/ TJ[VIJLP!HNBJMDPN !TJ[VIJLP IUUQTHJUIVCDPNTJ[VIJLP IUUQCMPHPQFOUPLZPKQ

  3. App Engine Container Builder Container Registry Cloud SDK

  4. None
  5. w 1)1+BWB(P1ZUIPO/PEFKT$ 3VCZ͕ಈ͘1BB4 w 4UBOEBSE&EJUJPO 7. ͱ'MFY &EJUJPO $POUBJOFS 

    w 4UBOEBSE͸Πϯελϯε࣌ؒ೔· Ͱແྉ w 1)14UBOEBSE͸ ͕Ћ w H7JTPS͕ϗοτͳ࿩୊ w QIQVTFSTKBTMBDLDPNͷHBF΁ (PPHMF"QQ&OHJOF https://cloud.google.com/appengine/
  6. ܧଓతσϓϩΠ $POUJOVPVT%FQMPZNFOU

  7. None
  8. w୯ମ݁߹ςετ͕ࣗಈԽ͞Ε͍ͯΔ wԿ͕ϦϦʔε͞ΕΔ͔໌֬ͩ wϒϥϯνઓུ $)"/(&-0(ʜ wΠϯϑϥͳͲͷߏங͕ࣗಈԽ͞Ε͍ͯΔ wϒϧʔάϦʔϯσϓϩΠͷ࢓૊Έ͕͋Δ wFUD

  9. local develop branch release branch master branch Pull
 Request Release

    TEST LINT CHANGELOG
 DEPLOY TEST LINT DEPLOY TEST
 VERSIONING
 DEPLOY
  10. ܧଓత݁߹ $POUJOVPVT*OUFHSBUJPO

  11. local develop branch release branch master branch Pull
 Request Release

    TEST LINT CHANGELOG
 DEPLOY TEST LINT DEPLOY TEST
 VERSIONING
 DEPLOY
  12. None
  13. ("&QVTIUPEFQMPZͰݕࡧ͢Δͱ

  14. w ೔͋ͨΓ෼·Ͱແྉ w Ҏ্͸෼ w ϑϧϚωʔδυαʔϏε w ϏϧυτϦΨʔͰ$*$%ΛࣗಈԽ w %PDLFSίϯςφΛ࣮ߦ

    w 4%,Λ࢖͏ͱϩʔΧϧϏϧυ΋Ͱ͖Δ $POUBJOFS#VJMEFS https://cloud.google.com/container-builder/
  15. w ϓϥΠϕʔτ%PDLFSϨϙδτϦ w ߴ଎ͳQVTIQVMM w ༷ʑͳ$*$%πʔϧͱͷ࿈ܞ΋Մ w %PDLFS73FHJTUSZ"1*ରԠ w ετϨʔδͱԼΓͷ௨৴ྉ͕՝ۚର৅

    w ౦ژετϨʔδ (#݄  w ௨৴͸ಉ͡ϩέʔγϣϯͳΒແྉ $POUBJOFS3FHJTUSZ https://cloud.google.com/container-registry/
  16. None
  17. w("&ͷόʔδϣϯ؅ཧ w৽نϓϩδΣΫτ࡞੒ͱઃఆ wϏϧυσϓϩΠ༻Πϝʔδͷ࡞੒ wϏϧυτϦΨʔͷ࡞੒ wσϓϩΠ

  18. (PPHMF"QQ&OHJOF Project Service: front Service: api v1.0 v1.1 v0.5 v1.0

    Datastore Storage Memcache https://cloud.google.com/appengine/docs/standard/java/microservices-on-app-engine
  19. w("&ͷόʔδϣϯ؅ཧ w৽نϓϩδΣΫτ࡞੒ͱઃఆ wϏϧυσϓϩΠ༻Πϝʔδͷ࡞੒ wϏϧυτϦΨʔͷ࡞੒ wσϓϩΠ

  20. w HDMPVEίϚϯυπʔϧͰ($1্ͷϦ ιʔεΛ؅ཧͰ͖Δ w #JH2VFSZΛૢ࡞͢ΔCRίϚϯυ w $MPVE4UPSBHFΛૢ࡞͢ΔHTVUJMίϚ ϯυ $MPVE4%,

  21. https://github.com/sizuhiko/gccb-php-se-sample

  22. w("&ͷόʔδϣϯ؅ཧ w৽نϓϩδΣΫτ࡞੒ͱઃఆ wϏϧυσϓϩΠ༻Πϝʔδͷ࡞੒ wϏϧυτϦΨʔͷ࡞੒ wσϓϩΠ

  23. Container Registry Cloud SDK ΠϝʔδΛϏϧυͯ͠PUSH

  24. w("&ͷόʔδϣϯ؅ཧ w৽نϓϩδΣΫτ࡞੒ͱઃఆ wϏϧυσϓϩΠ༻Πϝʔδͷ࡞੒ wϏϧυτϦΨʔͷ࡞੒ wσϓϩΠ

  25. w("&ͷόʔδϣϯ؅ཧ w৽نϓϩδΣΫτ࡞੒ͱઃఆ wϏϧυσϓϩΠ༻Πϝʔδͷ࡞੒ wϏϧυτϦΨʔͷ࡞੒ wσϓϩΠ

  26. App Engine Container Builder Container Registry Cloud Source Repositories ϛϥʔ

    PUSHτϦΨʔ PULL image Ϗϧυ
 ˍσϓϩΠ
  27. App Engine Container Builder Cloud Source Repositories ϛϥʔ PUSHτϦΨʔ Ϗϧυ


    ˍσϓϩΠ
  28. ͍͞͝ʹ

  29. wܧଓతσϓϩΠΛ͢Δʹ͸ɺԼ஍͕ॏཁ w($1ͷίϯϙʔωϯτΛ׆༻͢Δͱɺߏங ͸؆୯ʹͳΔ wH7JTPSͷྗͰɺͦͯͦ͠ΕҎ߱΋όʔ δϣϯΞοϓ͕ظ଴Ͱ͖Δ("&ʹ஫໨

  30. ࢀߟࢿྉ

  31. https://qiita.com/ryutah/items/663f97feb87571f972cc

  32. https://cloud.google.com/docs/

  33. WJTJUNZCMPHHJUIVC https://github.com/sizuhiko http://blog.open.tokyo.jp