Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
DockerをHerokuでも
Search
Mitsuhiro Okamoto
September 05, 2018
Technology
1
250
DockerをHerokuでも
2018年9月5日に開催されたHeroku Meetup #22での発表資料です。
Mitsuhiro Okamoto
September 05, 2018
Tweet
Share
More Decks by Mitsuhiro Okamoto
See All by Mitsuhiro Okamoto
Mulesoft Anypoint Platform ハンズオン
mokamoto
1
980
Mulesoft Meetup Tokyo #2 Hands-on
mokamoto
1
350
MuleSoftとAnypoint Platform
mokamoto
1
800
愛しのPostgreSQL ~ Herokuのデータベース & データ管理系サービスのおさらいの話 〜
mokamoto
0
140
Other Decks in Technology
See All in Technology
Terraform Stacks入門 #HashiTalks
msato
0
360
Security-JAWS【第35回】勉強会クラウドにおけるマルウェアやコンテンツ改ざんへの対策
4su_para
0
180
誰も全体を知らない ~ ロールの垣根を超えて引き上げる開発生産性 / Boosting Development Productivity Across Roles
kakehashi
2
230
OTelCol_TailSampling_and_SpanMetrics
gumamon
1
220
【Pycon mini 東海 2024】Google Colaboratoryで試すVLM
kazuhitotakahashi
2
560
AIチャットボット開発への生成AI活用
ryomrt
0
170
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
210
SRE×AIOpsを始めよう!GuardDutyによるお手軽脅威検出
amixedcolor
0
200
アジャイルチームがらしさを発揮するための目標づくり / Making the goal and enabling the team
kakehashi
3
150
初心者向けAWS Securityの勉強会mini Security-JAWSを9ヶ月ぐらい実施してきての近況
cmusudakeisuke
0
130
Adopting Jetpack Compose in Your Existing Project - GDG DevFest Bangkok 2024
akexorcist
0
120
DynamoDB でスロットリングが発生したとき/when_throttling_occurs_in_dynamodb_short
emiki
0
270
Featured
See All Featured
Gamification - CAS2011
davidbonilla
80
5k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Six Lessons from altMBA
skipperchong
27
3.5k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.2k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Building Your Own Lightsaber
phodgson
103
6.1k
Typedesign – Prime Four
hannesfritz
40
2.4k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Fireside Chat
paigeccino
34
3k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Transcript
)FSPLVNFFUVQ ˑ)FSPLV .BTBNVOF˒ %PDLFS)FSPLVד .JUTVIJSP0LBNPUP !NJUTVIJSP
荈䊹稱➜ .JUTVIJSP0LBNPUP 䀤劤 ⯍峔 4FOJPS%FWFMPQFS&WBOHFMJTU 4BMFTGPSDF 㸚⪒眔㔲 )FSPLV -JHIUOJOH 4BMFTGPSDF
.VMF4PGU
➙傈䪔ֲⰻ㺁 • %PDLFS,VCFSOFUFT LT ְֶׁ • )FSPLVד %PDLFS䪔ֲחכ • LT㼎䘔כ
%PDLFS)FSPLVד
ְֶׁ %PDLFSהכ رؿ؋ؙزأةٝت٦سך ؝ٝذش㘗⟎䟝橆㞮
%PDLFSהכ • ؝ٝذش㘗ך⟎䟝⻉橆㞮䲿⣘ׅؔ٦فٝا٦أاؿزؐؑ، • (P鎉铂ד㹋鄲 • 植㖈ך؝ٝذش⟎䟝⻉חֶֽرؿ؋ؙز • $/$'ך$POUBJOFS3VOUJNF*OUFSGBDFח彊䬿
䖞勻ך)ZQFSWJTPS㘗ה嫰ץג٥٥ 䬄韋⻉ך䏝さְָ넝ְךדծٔا٦أ⸬桦ⵃ欽דֹ Docker Docker https://knowledge.sakura.ad.jp/13265/
%PDLFS&OHJOF "1*װ $-*䲿⣘ׁفؚٗٓوـٕח盖椚 Docker Overview https://docs.docker.com/engine/docker-overview/
,VCFSOFUFTהכ • $MPVE/BUJWF$PNQVUJOH'PVOEBUJPO $/$' ָ䲿⣘ׅ ؝ٝذش盖椚ىسٕؐؑ، • رفٗ؎ծأ؛٦ٕծٗ٦ٕ،ؐز荈⹛⻉ • ؔ٦زؼ٦ؚٔٝծؔ٦زأ؛٦ٕ
• (PPHMFָ涪׃$/$'ָ⥂㸚 • %PDLFS؝ٝذش⸬桦涸ח盖椚٥麊欽דֹ
,VCFSOFUFTד⤑ⵃחזֿה ؙٓأة盖椚ծ،فٔךرفٗ؎ծأ؛٦ٕծ刿倜
)FSPLVך➬穈ה⡂גְ %ZOPTBOEUIF%ZOP.BOBHFS
%PDLFS ,VCFSOFUFTך1SPT$POT • ⵃ挿 • 噟歲垥彊 • ➭ךؙٓؐسדⵃ欽〳腉 • ٗ٦ٕؕ涪ろג窟♧ׁ橆㞮圓眠倯岀
• كٝت٦ٗحؙ؎ٝז׃ • طحزٙ٦ؙךٕ٦ذ؍ؚٝזו厫鮾 • 铬겗 • ⴱ㔐ך橆㞮圓眠װ嚊䙀ך㷕统ָ撕꧟ • ZBNMך㠖 • ֻ֮תד؝ٝذشךؔ٦؛أزٖ٦ءّٝך • "EEPO • $*
None
%PDLFS PO)FSPLV )FSPLVד%PDLFS⢪ֲ
剑ⴱך%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
%PDLFS%FQMPZT $POUBJOFS3FHJTUSZ3VOUJNF • )FSPLV荈魦ָ%PDLFS$POUBJOFS3FHJTUSZمأز • )FSPLVָرفٗ؎欽ח(JUمأز׃גְךהず圫 • $POUBJOFS3FHJTUSZפךؚٗ؎ٝ • %PDLFS#VJME1VTI
植㖈כ)FSPLV %PDLFS؟ه٦ز $ heroku container:login $ heroku container:push web $ heroku container:release web
)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$*כת劢㼎䘔
ך➭%PDLFS)FSPLVחرفٗ؎ׅꥷך岣䠐挿 • &9104&ךꬊ؟ه٦ز 1035#JOEJOHֿׅהח㢌⻉כ搀׃ • /FUXPSLMJOLJOHꬊ؟ه٦ز • &/7כ؟ه٦ز •
ٗ٦ٕؕדכFOW⢪ְծEPDLFSJHOPSF⢪ג)FSPLV♳דכ)FSPLV$POGJH⢪ֲ • $.%ָ䗳갭 • %PDLFSך㜥さծ،فٔ؛٦ءّٝךSVO؝وٝسכֿֿח鎸鶢 • 70-6.& 45014*(/"- 4)&-- )&"-5)$)&$,זו ꬊ؟ه٦ز )FSPLVך،٦ؗذؙثٍחさזְ堣腉כ؟ه٦زꤐ㢩
%PDLFSֽׄׯזֻגLT)FSPLVד⢪ְְ • 植朐דכ؟ه٦ز搀׃ • ׃ַ׃孡חזهأز • IUUQTCMPHIFSPLVDPNEJTTFDUJOHLVCFSOFUFTEFQMPZNFOUT • 䔲搫&OHJOFFSJOHث٦يחכLTךFYQFSU㖈硂׃גְ •
➙䖓ח劍䖉 (Kubernetes deployment)
➙傈ךתה )FSPLVד%PDLFS⢪ִתׅ״1JQFMJOFT㼎䘔幥
thank y u ָ֮הֲ׀ְׂת׃