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
53
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
54
Tips for Building Lightweight Docker Images
kellyjandrews
0
64
Serverless Concepts
kellyjandrews
1
210
Other Decks in Technology
See All in Technology
Driving AI Adoption Using In-House GPUs to Serve Qwen
po3rin
2
440
AndroidでHDRメディアを「壊さずに」扱う
chigichan24
0
390
Bet AI Day 2026丨Production-Ready AI Agents — エンタープライズの実務を任せるための設計と運用
layerx
PRO
3
2.1k
JAWS-UG初心者支部#88わいわい初心塾(夏休みの宿題やったかGit編)
otsuki
0
120
ブラウザアプリの継続的パフォーマンスモニタリング (序) / Continuous Browser Application Performance Monitoring; Act 1
moznion
0
110
AIで実装は速くなった。なのにプロダクトは速くならない。職能の壁を越えて価値のフローを設計する
nwiizo
6
7k
【Oracle AI Spotlight ウェビナー】AWSか、Azureか、Google Cloudか。その議論にオラクルを含める意義。
oracle4engineer
PRO
2
230
Kiro Crewしか勝たん!?
miu_crescent
PRO
0
180
少人数データチームのDevin活用実践事例
runandy16
2
430
AIエージェントを雇う前に決める5つのこと
knishioka
1
160
AI活用の現在地、 ちゃんと見えてますか?/XPfest-2026
visional_engineering_and_design
0
140
振り返りこそエンジニアの本領
negima
0
280
Featured
See All Featured
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
270
Building a Scalable Design System with Sketch
lauravandoore
463
34k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
260
Deep Space Network (abreviated)
tonyrice
0
290
So, you think you're a good person
axbom
PRO
2
2.1k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
4 Signs Your Business is Dying
shpigford
187
23k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Everyday Curiosity
cassininazir
0
310
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