【YappliMeetup#3】Fargateでサクッと作る開発環境 / Make development environment with Fargate

【YappliMeetup#3】Fargateでサクッと作る開発環境 / Make development environment with Fargate

Yappli Meetup#3 で発表した資料です。
https://yappli.connpass.com/event/101631/

382deed6068c4f0cd23f7db1c290b267?s=128

MotokiHabuchi

October 30, 2018
Tweet

Transcript

  1. 'BSHBUFͰαΫοͱ࡞Δ։ൃ؀ڥ גࣜձࣾϠϓϦ Ӌᔹݩل

  2.  ͸Ϳͪ΋ͱ͖  !NPEPLLJOϑΥϩʔΑΖ  ࣎լݝग़਎  ϠϓϦͷΠϯϑϥϚϯ݉৘γε  ޷͖ͳ΍ͭ5FSSBGPSN

    'BSHBUF
  3. ίϯςφʹ͍͓ͭͯ͞Β͍ 'BSHBUFJTͳʹʁ ؾΛ͚ͭΔϙΠϯτ ͲΜͳײ͡Ͱ࢖͍ͬͯΔ͔ ·ͱΊ

  4. ίϯςφΛར༻ͨ͠։ൃʹඞཁͳٕज़ཁૉ  ΞϓϦͷεςʔτϨεԽ  ϨδετϦ  ίϯτϩʔϧϓϨʔϯσʔλϓϨʔϯ  $*$%ύΠϓϥΠϯ Ҿ༻ɿʲ"84#MBDL#FMU0OMJOF4FNJOBSʳ

    IUUQTXXXTMJEFTIBSFOFU"NB[PO8FC4FSWJDFT+BQBOBXTCMBDLCFMUPOMJOFTFNJOBSBNB[PODPOUBJOFSTFSWJDFT
  5. ΞϓϦͷεςʔτϨεԽ ίϯςφͷதʹ͸εςʔτϨεͳΞϓϦΛೖΕΔ
 ɹίϯςφͷϝϦοτΛ࠷େݶ׆͔ͤΔ εςʔτ͕ඞཁͳ΋ͷ͸ίϯςφ֎ʹ
 ɹ3%#.4ˠ3%4ΦϒδΣΫτอଘˠ4 Ҿ༻ɿʲ"84#MBDL#FMU0OMJOF4FNJOBSʳ IUUQTXXXTMJEFTIBSFOFU"NB[PO8FC4FSWJDFT+BQBOBXTCMBDLCFMUPOMJOFTFNJOBSBNB[PODPOUBJOFSTFSWJDFT

  6. ϨδετϦ ίϯςφͷىಈݩͱͳΔΠϝʔδஔ͖৔
 ɹΞϓϦʴ࣮ߦ؀ڥΛQVTI࣮ߦ࣌ʹQVMMͯ͠ىಈ
 ɹˠ&$3 Ҿ༻ɿʲ"84#MBDL#FMU0OMJOF4FNJOBSʳ IUUQTXXXTMJEFTIBSFOFU"NB[PO8FC4FSWJDFT+BQBOBXTCMBDLCFMUPOMJOFTFNJOBSBNB[PODPOUBJOFSTFSWJDFT

  7. ίϯτϩʔϧϓϨʔϯσʔλϓϨʔϯ ίϯτϩʔϧϓϨʔϯίϯςφΛ؅ཧ͢Δ৔ॴ
 ɹˠ&$4&,4 σʔλϓϨʔϯ࣮ࡍʹίϯςφ͕Քಇ͢Δ৔ॴ
 ɹˠ'BSHBUF&$ Ҿ༻ɿʲ"84#MBDL#FMU0OMJOF4FNJOBSʳ IUUQTXXXTMJEFTIBSFOFU"NB[PO8FC4FSWJDFT+BQBOBXTCMBDLCFMUPOMJOFTFNJOBSBNB[PODPOUBJOFSTFSWJDFT

  8. $*$%ύΠϓϥΠϯ ΞϓϦͷίʔυมߋʙίϯςφͷσϓϩΠ؅ཧ
 ɹˠ$JSDMF$*$PEF1JQFMJOF$PEF#VJME ίϯτϩʔϧϓϨʔϯͷҧ͍Λٵऩ͢Δࣄ΋Մೳ
 ɹಉ͡ίʔυ͔Βɺ&$4(,&΁ Ҿ༻ɿʲ"84#MBDL#FMU0OMJOF4FNJOBSʳ IUUQTXXXTMJEFTIBSFOFU"NB[PO8FC4FSWJDFT+BQBOBXTCMBDLCFMUPOMJOFTFNJOBSBNB[PODPOUBJOFSTFSWJDFT

  9. ίϯςφʹ͍͓ͭͯ͞Β͍ 'BSHBUFJTͳʹʁ ؾΛ͚ͭΔϙΠϯτ ͲΜͳײ͡Ͱ࢖͍ͬͯΔ͔ ·ͱΊ

  10.  σʔλϓϨʔϯʹ࣮ࡍʹίϯςφ͕Քಇ͢Δ৔ॴ  Πϯϑϥ &$ͳͲ ؅ཧෆཁͳίϯςφ࣮ߦ؀ڥ  λεΫεέδϡʔϧʹΑΔఆظ࣮ߦ΋Մೳ  ࣮ߦ੍࣌ؒݶ͕ͳ͍

    -BNCEB͸෼ 'BSHBUFJTͳʹʁ
  11. ίϯςφʹ͍͓ͭͯ͞Β͍ 'BSHBUFJTͳʹʁ ؾΛ͚ͭΔϙΠϯτ ͲΜͳײ͡Ͱ࢖͍ͬͯΔ͔ ·ͱΊ

  12. ؾΛ͚ͭΔϙΠϯτ  ίϯςφϗετʹ44)Ͱ͖ͳ͍  &*1ׂ͕Γ౰ͯΒΕͳ͍  &$4ΑΓσϓϩΠֻ͔࣌ؒΔ Β͍͠  

    -JOLػೳ࢖͑ͳ͍  4FDVSJUZ(SPVQ΍71$ઃఆ͸ԡ͓͑ͯ͘͞ ࢀߟɿIUUQTRJJUBDPNUBJTIJOJUFNTFEFFBFD
  13. ίϯςφϗετʹ44)Ͱ͖ͳ͍ σόοά͕ͭΒ͍͚ͲɺϩʔΧϧͰίϯςφ
 ΠϝʔδΛͪΌΜͱ࡞͓͚ͬͯ͹໰୊ͳͦ͞͏

  14. ίϯςφʹ&*1ׂ͕Γ౰ͯΒΕͳ͍ ίϯςφ͸࢖͍ࣺͯͰίϩίϩସΘΔͷʹ&*1͕ ࢖͑ͳ͍

  15. &$4ΑΓσϓϩΠֻ͔࣌ؒΔ Β͍͠ ࠓճͷ࢖͍ํͩͱʙඵ͙Β͍ͩͬͨͷͰ
 ໰୊ͳ͔ͬͨ

  16. -JOLػೳ࢖͑ͳ͍ ɹಉ͡λεΫఆٛ಺ͷίϯςφͳΒ
 ɹMPDBMIPTU QPSUͰΞΫηεͰ͖Δ

  17. 71$΍4FDVSJUZ(SPVQ͸ԡ͓͑ͯ͘͞ 'BSHBUFͷར༻͸71$લఏͳͷͰɺίϯςφ΁ͷ ΞΫηε੍ݶ͸4FDVSJUZ(SPVQͰߦ͏

  18. ίϯςφʹ͍͓ͭͯ͞Β͍ 'BSHBUFJTͳʹʁ ؾΛ͚ͭΔϙΠϯτ ͲΜͳײ͡Ͱ࢖͍ͬͯΔ͔ ·ͱΊ

  19. ͍··Ͱ Πϝʔδ "-# 3PVUF $MJFOU OpsworksͰ खಈσϓϩΠ Nginx php-fpm &$*OTUBODFT

    0QTXPSLT
  20. ཁ݅  (0ͱHSQD࢖͏ͧ  ϑϩϯτ͸IUUQTͰ௨৴ͬͧ͢  όοΫΤϯυ͸HSQDͰ௨৴ͬͧ͢

  21. ͜Μ͔͍ /-# 3PVUF $MJFOU 'BSHBUF CircleCIͰ ࣗಈσϓϩΠ

  22. 'BSHBUFपΓͷߏ੒ 'BSHBUFPO&$4 "QQMJDBUJPO FOWPZ $POUBJOFS
 SFHJTUPSZ &$3 &$4 5BTL EFpOJUJPO

    4FSWJDF EFpOJUJPO 4FSWJDF $MVTUFS /-# HPQIFSGSPOUQOHXBTDSFBUFECZ5BLVZB6FEB IUUQTUXJUUFSDPNUFOOUFOO -JDFOTFEVOEFSUIF$SFBUJWF$PNNPOT"UUSJCVUJPOTMJDFOTF 4FSWJDF
  23. ௨৴ͷྲྀΕ IUUQT IUUQT IUUQT 'BSHBUFPO&$4 "QQMJDBUJPO FOWPZ $MVTUFS HSQD /-#

    3PVUF $MJFOU IUUQT NLBͷ Alias Record TLSূ໌ॻ ݕূ grpc΁ͷ ஔ͖׵͑ ίϯςφOSʹ͸ AlpineLinux
  24. 'BSHBUFPO&$4Λ ͲΜͲΜ׆༻͍͖ͯ͠·͠ΐ͏ʂ

  25. ஥ؒืूத ڵຯͷ͋Δํ͸ 5XJUUFS!ZBQQMJ@KQ·Ͱʂ