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
Python Apps and Docker
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Matt Wright
August 17, 2014
Technology
1.4k
1
Share
Python Apps and Docker
Slides for a presentation I gave at PyGotham 2014
Matt Wright
August 17, 2014
More Decks by Matt Wright
See All by Matt Wright
Deploying Flask (WSGI) Applications
mattupstate
3
1.8k
Testing Flask Applications
mattupstate
5
1.6k
Other Decks in Technology
See All in Technology
AIが書いたコードを信じられない問題 〜レビュー負荷を下げるために変えたこと〜 / The AI Code Trust Gap: Reducing the Review Burden
bitkey
PRO
6
1.2k
#jawsugyokohama 100 LT11, "My AWS Journey 2011-2026 - kwntravel"
shinichirokawano
0
340
みんなで作るAWS Tips 100連発 (FinOps編)
schwrzktz
1
290
Revisiting [CLS] and Patch Token Interaction in Vision Transformers
yu4u
0
350
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
4
2.3k
みんなの「データ活用」を支えるストレージ担当から持ち込むAWS活用/コミュニティー設計TIPS 10選~「作れる」より、「続けられる」設計へ~
yoshiki0705
0
240
AWS認定資格は本当に意味があるのか?
nrinetcom
PRO
1
270
Practical TypeProf: Lessons from Analyzing Optcarrot
mame
0
230
AIエージェントの権限管理 2: データ基盤の Fine grained access control 編
ren8k
0
120
Code Interpreter で、AIに安全に コードを書かせる。
yokomachi
0
7.1k
昔はシンプルだった_AmazonS3
kawaji_scratch
0
330
コードや知識を組み込む / Incorporate Code and Knowledge
ks91
PRO
0
140
Featured
See All Featured
A Tale of Four Properties
chriscoyier
163
24k
Navigating Weather and Climate Data
rabernat
0
170
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
150
Designing Experiences People Love
moore
143
24k
New Earth Scene 8
popppiees
3
2.1k
Marketing to machines
jonoalderson
1
5.2k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
130
Believing is Seeing
oripsolob
1
110
Chasing Engaging Ingredients in Design
codingconduct
0
170
Balancing Empowerment & Direction
lara
6
1.1k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
320
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
190
Transcript
Python Apps & Docker @pygotham 2014
Matt Wright @mattupstate Software/Ops Engineer @ChatID • Python, Lua, CoffeeScript
• Flask, Prosody, Backbone, Angular Open Source • Author: Flask-Security, Flask-JWT, ... • Contributor: Ansible, Flask • Member: metaflask
What’s all the fuss about?
“... an open platform for developers and sysadmins to build,
ship, and run distributed applications.” http://docker.com/whatisdocker Docker:
Images A stateless, read-only collection of “layers” joined together via
a union filesystem. Containers A stateful instance of an image in which one or more processes are running or have exited Docker: Concepts
Docker: Components Docker Engine A portable, lightweight system level daemon
that manages images and containers Docker Hub A web service for distributing images and enabling automated workflows
Docker Hub Server Docker Engine Docker CLI Containers Images Docker:
Birds Eye View Repository Images Repository Images Repository Images Repository Images
• Development Environments • Application Deployment • Continuous Integration •
Continuous Delivery • Platform-as-a-Service (PaaS) Docker: Use Cases
Tooling Kubernetes Marathon maestro-ng Shipyard fig Platforms Elastic Beanstalk CoreOS
flynn.io deis.io Docker: Landscape SaaS circleci.com shippable.com drone.io quay.io and many more (to come) ...
boot2docker https://coderwall.com/p/fvfjyg
+
Development Environments
• OS • System libraries • Python dependencies • Database,
cache, etc Dev Env: Components
• Constantly change • Never truly consistent • Miscommunication (Ops
vs. Devs) • “Drift” Dev Env: Problems
• README • Stacks (LAMP, XAMP) • Virtual Machines •
Vagrant + (Chef | Puppet | Ansible) Dev Envs: Before
• Easy to change and share • Always consistent •
100% Isolated • Single authority • Production ready! Dev Envs: Docker!
Dockerfile
Testing
Fig $ pip install fig
Production Ready
• Be skeptical of Docker dogma • Keep secrets out
of env vars • Don’t use Docker for everything • Design images carefully Docker Tips
Thank You! mattupstate.com gittip.com/mattupstate github.com/mattupstate twitter.com/mattupstate