Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Docker: Development to Production
Search
Kelly Andrews
October 25, 2017
Technology
58
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
140
Continuous Testing, Integration, and Deployment for JavaScript Projects
kellyjandrews
0
58
Tips for Building Lightweight Docker Images
kellyjandrews
0
68
Serverless Concepts
kellyjandrews
1
220
Other Decks in Technology
See All in Technology
使いこなすために知っておきたい Azure SRE Agent アンチパターン
torumakabe
2
500
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
140
パッチ更新でterraform initが落ちた日
grimoh
1
130
事業成長とデータ活用を止めないためのマネジメントへ挑戦
hiracky16
0
350
AI駆動開発の時代になったのでトヨタ生産方式から見直す
terurou
7
5.9k
実践!Cloud Run ハンズオン!! / Cloud Run handson
y0hgi
2
260
NDIでApple Vision Proにリアルタイム映像送信
jyouryuusui
0
110
その Valkey 使いこなしていますか?
onk
PRO
5
920
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
0
160
Refining Active Record
shugo
0
110
Claude Code本は、どのように執筆チームで書かれたか
oikon48
1
370
Rust で関数型ドメインモデリング
takonda
0
100
Featured
See All Featured
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
700
Making Projects Easy
brettharned
120
6.8k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
A Tale of Four Properties
chriscoyier
163
24k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
560
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
850
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Optimising Largest Contentful Paint
csswizardry
37
4k
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