Laravelのデプロイ戦略。VPSからDocker、Kubernates、サーバレスまで

 Laravelのデプロイ戦略。VPSからDocker、Kubernates、サーバレスまで

793fd8f822c708b5fb9f8c17af8e50e3?s=128

Tsuyoshi Tsurushima

February 16, 2019
Tweet

Transcript

  1. 2.

    ௽ ౡ ߶ 4UPSF$MPVEגࣜձࣾ ୅දऔక໾ ελʔτΞοϓΛ͸͡Ί·ͨ͠ɻ&31Λ4BB4Ͱఏڙ༧ఆͰ͢ɻ -BSBWFM 7VFKT /VYUKT ࢖ͬͯ·͢ɻ

    ٻਓ͢ΒͰ͖ͳ͍খ͞ͳձࣾͰ͕͢օ͞Μ஥ྑ͍ͯͩ͘͘͠͞ʂ ࠓ·ͰडୗͰখചɾྲྀ௨ۀ޲͚ͷγεςϜΛ࡞ͬͯ·ͨ͠ɻ Πϯϑϥߏஙɺอकӡ༻΋୲౰͍ͯ͠·ͨ͠ɻ UTVSVTIJNB U@UTVSV UUTVSV ˞೥લ  5TVZPTIJ5TVSVTIJNB
  2. 7.

    Ξϯέʔτ σϓϩΠઌ  "84 &$&#&$4 &$ &$4 'BSHBUF &,4-BNCEB 

    ($1 ($&("&(,&  "[VSF 7.",48FC"QQPO-JOVY8FC"QQGPS$POUBJOFST  )FSPLV  ͦͷଞΫϥ΢υ 714  ΦϯϓϨ  Ϩϯλϧαʔό  ͦͷଞ 
  3. 17.

    σϓϩΠઌ  "84 &$ &#&$4 &$ &$4 'BSHBUF &,4-BNCEB 

    ($1 ($& ("&(,&  "[VSF 7. ",48FC"QQPO-JOVY8FC"QQGPS$POUBJOFST  )FSPLV  ͦͷଞΫϥ΢υ 714  ΦϯϓϨ  Ϩϯλϧαʔό  ͦͷଞ  ઌ૆୅ʑଓ͘ɺαʔό΁ͷσϓϩΠ
  4. 18.

    σϓϩΠઌ  "84 &$&# &$4 &$ &$4 'BSHBUF &,4-BNCEB 

    ($1 ($&("& (,&  "[VSF 7.",48FC"QQPO-JOVY 8FC"QQGPS$POUBJOFST  )FSPLV  ͦͷଞΫϥ΢υ 714  ΦϯϓϨ  Ϩϯλϧαʔό  ͦͷଞ  1BB4
  5. 19.

    σϓϩΠઌ  "84 &$&#&$4 &$ &$4 'BSHBUF &,4 -BNCEB 

    ($1 ($&("&(,&  "[VSF 7.",4 8FC"QQPO-JOVY8FC"QQGPS$POUBJOFST  )FSPLV  ͦͷଞΫϥ΢υ 714  ΦϯϓϨ  Ϩϯλϧαʔό  ͦͷଞ  %PDLFS
  6. 30.

     VPC AWS Cloud Availability Zone Elastic IP Address Public

    subnet Private subnet EC2 Apache PHP RDS Aurora
  7. 32.

     VPC AWS Cloud Availability Zone Elastic IP Address Public

    subnet Private subnet EC2 Apache PHP RDS Aurora
  8. 44.

    VPC AWS Cloud ap-northeast- 1 a Public subnet ap-northeast- 1

    c ap-northeast- 1 d Private subnet AWS CodeCommit AWS CodeBuild AWS CodeDeploy AWS CodePipeline Amazon DynamoDB Amazon S3  Amazon SQS Amazon ECR Amazon SES ALB
  9. 56.

    

  10. 58.

    57

  11. 60.

    2

  12. 64.
  13. 73.
  14. 80.

    

  15. 84.

    Ξϯέʔτ σϓϩΠઌ ͜Ε͔ΒͲ͏͍ͨ͠ͱࢥ͍·͔ͨ͠ʁ  "84 &$&#&$4 &$ &$4 'BSHBUF &,4-BNCEB

     ($1 ($&("&(,&  "[VSF 7.",48FC"QQPO-JOVY8FC"QQGPS$POUBJOFST  )FSPLV  ͦͷଞΫϥ΢υ 714  ΦϯϓϨ  Ϩϯλϧαʔό  ͦͷଞ