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
Multi-Agent並列開発を 安全に回すための技術 / Technology for Safely Multi-Agent Parallel Development
tooppoo
0
250
技術・能力を向上する原理原則 #きのこセッションa #きのこ2026
bash0c7
0
200
AIで政治は変わるのか? — 中高生と考えたAI時代の民主主義(東海高校サタデープログラム)
eitarosuda
0
360
AIDLC_ヤフーショッピングの取り組み
lycorptech_jp
PRO
0
500
AI時代における最適なQA組織の作り方
ymty
3
340
“全部コピーしない”ファイルデータの活用 : — FSx for ONTAP × S3 Tables × Icebergで作るメタデータカタログ
yoshiki0705
0
320
クラウドファンディング版StackChan 3体(4体)をインタラクティブな体験型作品にして展示もした話 / スタックチャンお誕生日会2026
you
PRO
0
270
なぜ私たちのSREプラクティスはなかなか機能しないのか 〜システムより先に組織を見る〜 / Why our SRE practices aren't really working
vtryo
0
110
組織における AI-DLC 実践
askul
0
300
プロンプト_きのこカンファレンス2026_LT
yurufuwahealer
0
130
『AIに負けない』より『AIと遊ぶ』」〜ワクワクが最強のテスト・QA学習戦略_公開用
odan611
1
360
AWS Blocks を触ってみた/first-tach-aws-blocks
fossamagna
2
140
Featured
See All Featured
WENDY [Excerpt]
tessaabrams
11
38k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
180
Navigating Weather and Climate Data
rabernat
0
270
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.6k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
2
280
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
210
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
460
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
44k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
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