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: Development to Production
Search
Kelly Andrews
October 25, 2017
Technology
51
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Docker: Development to Production
Introduction to Docker
Kelly Andrews
October 25, 2017
More Decks by Kelly Andrews
See All by Kelly Andrews
Communications on Fire
kellyjandrews
0
130
Continuous Testing, Integration, and Deployment for JavaScript Projects
kellyjandrews
0
52
Tips for Building Lightweight Docker Images
kellyjandrews
0
58
Serverless Concepts
kellyjandrews
1
210
Other Decks in Technology
See All in Technology
ソニー銀行におけるビジネスアジリティ向上のためのクラウドシフト戦略
srenext
0
720
DatabricksにおけるMCPソリューション
taka_aki
1
270
「ちゃんとやっている」は独りよがりだった ― 不安に寄り添うインシデント対応へ / Towards incident response that addresses anxieties
chmikata
1
5.9k
2年前に削除したPHPクラスが、 ある日突然決済をエラーにした
ykagano
1
280
“それは自分の仕事じゃない"を越えて行け
yuukiyo
1
470
非定型なドキュメントを効率よくリファクタする 〜えぇ!?仕様書27本の移行が1日で終わったって!?〜
subroh0508
2
550
Network Firewallやっていき!
news_it_enj
0
170
ボーイスカウトルールでメモリやスキルを改善しよう
azukiazusa1
4
1.4k
見守りエージェントを作ってみた(ローカルLLM + Hermes Agent)
happysamurai294
0
110
誤解だらけの開発生産性 / Myths and Misconceptions about Developer Productivity
i35_267
2
780
CSに"SLO"は要らない、経営層に"99.9%"は伝わらない - SREを全社に"翻訳"する3原則
cscengineer
PRO
1
5k
AICoEでAIネイティブ組織への進化
yukiogawa
0
190
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
370
Technical Leadership for Architectural Decision Making
baasie
3
440
Being A Developer After 40
akosma
91
590k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.4k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.5k
Become a Pro
speakerdeck
PRO
31
6k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.6k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
880
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
390
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
510
Paper Plane
katiecoart
PRO
2
52k
Transcript
None
None
None
None
DEVELOPMENT CODE COMMIT STAGING PRODUCTION
None
None
None
FROM node:8.6.0-alpine WORKDIR /usr/app RUN apk update && apk add
postgresql COPY package.json . RUN npm install --quiet COPY . . CMD ["npm", "start"]
version: '3' services: web: build: . command: npm run dev
volumes: - .:/usr/app/ - /usr/app/node_modules ports: - "3000:3000" depends_on: - postgres environment: DATABASE_URL: postgres://postgres@postgres postgres: image: postgres:9.6.2-alpine
/> docker-compose up Building web Step 1/7 : FROM node:8.6.0-alpine
---> b7e15c83cdaf Step 2/7 : WORKDIR /usr/app ---> Using cache ---> 930841436abd Step 3/7 : RUN apk update && apk add postgresql ---> Using cache ---> 723796574582 Step 4/7 : COPY package.json . ---> ebf3d00f6e65 Removing intermediate container 47a5ab5f7e4c Step 5/7 : RUN npm install --quiet ---> Running in 4d0e1487b2dc
None
DEVELOPMENT CODE COMMIT STAGING PRODUCTION
None
None
web: build: dockerfile_path: Dockerfile image: registry.heroku.com/todos-js/web links: - postgres environment:
DATABASE_URL: postgres://postgres@postgres cached: true postgres: image: postgres:9.6.2-alpine cached: true
- type: parallel steps: - name: lint service: web command:
npm run lint - name: tests service: web command: bin/ci "npm test -- --forceExit"
/> jet steps (step: tests) (step: lint) (image: registry.heroku.com/todos-js/web) (service:
web) (image: registry.heroku.com/todos-js/web) (service: web) Step 1/7 : FROM node:8.6.0-alpine (image: registry.heroku.com/todos-js/web) (service: web) ---> b7e15c83cdaf (image: registry.heroku.com/todos-js/web) (service: web) Step 2/7 : WORKDIR /usr/app (image: registry.heroku.com/todos-js/web) (service: web) ---> Using cache (image: registry.heroku.com/todos-js/web) (service: web) ---> 930841436abd (image: registry.heroku.com/todos-js/web) (service: web) Step 3/7 : RUN apk update && apk add postgresql (image: registry.heroku.com/todos-js/web) (service: web) ---> Using cache (image: registry.heroku.com/todos-js/web) (service: web) ---> 723796574582 (image: registry.heroku.com/todos-js/web) (service: web) Step 4/7 : COPY package.json . (image: registry.heroku.com/todos-js/web) (service: web) ---> Using cache (image: registry.heroku.com/todos-js/web) (service: web) ---> f4366f587688
None
None
DEVELOPMENT CODE COMMIT STAGING PRODUCTION
heroku_dockercfg: image: codeship/heroku-dockercfg-generator add_docker: true encrypted_env_file: deployment.env.encrypted
- service: web type: push image_name: registry.heroku.com/todos-js/web registry: registry.heroku.com dockercfg_service:
heroku_dockercfg
/> jet steps --push --tag master /> git commit -am
“updated app” /> git push
None
None
None