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

DockerをHerokuでも

 DockerをHerokuでも

2018年9月5日に開催されたHeroku Meetup #22での発表資料です。

Mitsuhiro Okamoto

September 05, 2018
Tweet

More Decks by Mitsuhiro Okamoto

Other Decks in Technology

Transcript

  1. %PDLFS ,VCFSOFUFTך1SPT$POT • ⵃ挿 • 噟歲垥彊 • ➭ךؙٓؐسד׮ⵃ欽〳腉 • ٗ٦ٕؕꟚ涪׮ろ׭ג窟♧ׁ׸׋橆㞮圓眠倯岀

    • كٝت٦ٗحؙ؎ٝז׃ • طحزٙ٦ؙךٕ٦ذ؍ؚٝזו׮厫鮾 • 铬겗 • ⴱ㔐ך橆㞮圓眠װ嚊䙀ך㷕统ָ撕꧟ • ZBNMך㠖 • ֻ֮תד؝ٝذشךؔ٦؛أزٖ٦ءّٝך׫ • "EEPO • $*
  2. 剑ⴱך%PDLFS؟ه٦ز  IFSPLV EPDLFSSFMFBTF • ؎ً٦آ׾IFSPLVDFEBS PS)FSPLV ח寸׭䩧׍ד%PDLFSGJMF׾欰䧭׃ծ ٗ٦ٕؕדךꟚ涪ך׫׾%PDLFS㼎䘔ׅ׷ •

    ٔٔ٦أ儗ח؝وٝسדBQQꂁ♴׾SFMFBTF"1*ד4MVHה׃גرفٗ؎ ♧殢剑ⴱך%PDLFS؟ه٦ز倯䒭 植㖈כꬊ䱿㤺 $ heroku docker:release $ heroku docker:init $ heroku docker:start https://blog.heroku.com/introducing_heroku_docker_release_build_deploy_heroku_apps_with_docker
  3. )FSPLV1JQFMJOFTה%PDLFS׾⢪ֲ IFSPLVZNM EFWFMPQFSQSFWJFX setup: addons: - plan: heroku-postgresql as: DATABASE

    config: S3_BUCKET: my-example-bucket build: docker: web: Dockerfile worker: worker/Dockerfile config: FOO: bar release: command: - ./deployment-tasks.sh • 倜׃ְ)FSPLVךوصؿؑأزؿ؋؎ٕ • 1SPDGJMFװBQQKTPOח鎸鶢דֹ׷ⰻ㺁׾ ZBNMד㹀纏דֹ׷ • SVOךⰻ㺁 • QSF QPTU • DPOGJH • BEEPOT • CVJME • MBOHVBHF • 植㖈כ+BWBPS3VCZך׫ • %PDLFSךⵃ欽׮〳腉 • )FSPLV$*כת׌劢㼎䘔
  4. ׉ך➭%PDLFS׾)FSPLVחرفٗ؎ׅ׷ꥷך岣䠐挿 • &9104&ךꬊ؟ه٦ز  1035׾#JOEJOHׅ׷ֿהח㢌⻉כ搀׃ • /FUXPSLMJOLJOH׮ꬊ؟ه٦ز • &/7כ؟ه٦ز •

    ٗ٦ٕؕדכFOW׾⢪ְծEPDLFSJHOPSF׾⢪׏ג)FSPLV♳דכ)FSPLV$POGJH׾⢪ֲ • $.%ָ䗳갭 • %PDLFSך㜥さծ،فٔ؛٦ءّٝךSVO؝وٝسכֿֿח鎸鶢 • 70-6.& 45014*(/"- 4)&-- )&"-5)$)&$,זו׮ ꬊ؟ه٦ز )FSPLVך،٦ؗذؙثٍחさ׻זְ堣腉כ؟ه٦زꤐ㢩