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

開発環境でのDocker活用事例と本番運用に向けて考えたこと

sutetotanuki
July 03, 2017
5.3k

 開発環境でのDocker活用事例と本番運用に向けて考えたこと

Developers.IO 2017 発表資料

sutetotanuki

July 03, 2017
Tweet

Transcript

  1. ϋʔυ΢ΣΞ ϗετ04 ϋΠύʔόΠβʔ ήετ04 ήετ04 ήετ04 ϥΠϒϥϦ " ϥΠϒϥϦ #

    ϥΠϒϥϦ # ΞϓϦ " ΞϓϦ # ΞϓϦ # ϋʔυ΢ΣΞ ϗετ04 ίϯςφΤϯδϯ ϥΠϒϥϦ " ϥΠϒϥϦ # ΞϓϦ " ΞϓϦ # ΞϓϦ # 7.ͱ$POUBJOFS  w%PDLFSʢσʔϞϯʣ͕ϗετ04ͷ,FSOFMͱ΍ΓͱΓ w$POUBJOFSͷத͸࠷খݶʢγΣϧͱ͔ϓϩηεͷىಈʹඞཁͳ΋ͷͱ͔ʣ VM Container
  2. σϓϩΠઓུ  σϓϩΠ࣌ͷڍಈΛઃఆ͢Δύϥϝʔλ EFTJSFE$PVOU αʔϏεʹରͯ͠ىಈ͓͖͍ͯͨ͠ίϯςφͷ਺ NBYJNVN1FSDFOU EFTJSFE$PVOUʹରͯ͠Կ·ͰίϯςφΛىಈͤ͞Δ͔ ʹઃఆ͢Ε͹ɺEFTJSFE$PVOU  ୆ͳΒ୆

    ·ͰىಈͰ͖Δ NJOJNVN)FBMUIZ1FSDFOU EFTJSFE$PVOUʹରͯ͠Կ·ͰίϯςφΛఀࢭͤ͞Δ͔ ʹઃఆ͢Ε͹ɺEFTJSFE$PVOU ̎୆ͳΒ୆ ·ͰॖୀͰ͖Δ
  3. ϩΪϯά  ྫʣBXTMPHTMPHHJOHESJWFS ྫʣqVFOUEMPHHJOHESJWFS ECS Cluster APP Container CloudWatchLogs awslogs

    STDOUTʹग़ྗ͞Εͨ಺༰ ECS Cluster APP Container flunetd Fluentd Container APP Container flunetd S3 Logentries STDOUTʹग़ྗ͞Εͨ಺༰
  4. ຊ൪Ͱͷ׆༻ࣄྫ  ֎෦γεςϜͱͷ࿈ܞ෦෼ʹ࢖༻ ECR (Go) Task Definition (Command: fetch) Task

    Definition (Command: api) ECS Cluster Service (api) Run Task (fetch) ಛఆͷ࣌ؒʹىಈ͠ ॲཧ͕ऴΘΕ͹ফ໓ ॲཧ׬ྃ ผ಺෦γεςϜ FTPͰϑΝΠϧΛऔಘ