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
Python Apps and Docker - Matt Wright
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
PyGotham 2014
August 16, 2014
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Python Apps and Docker - Matt Wright
An overview of why and how one might use Docker for Python applications
PyGotham 2014
August 16, 2014
Transcript
22 slides
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
More Decks by PyGotham 2014
See All by PyGotham 2014
Service Oriented Flask - Randall Degges
pygotham2014
2
240
What Problem Are You Trying to Solve, Anyway? - Alfred Lee
pygotham2014
0
150
Decorators 101: A Gentle Introduction to Functional Programming - Jillian Munson
pygotham2014
3
330
Pretty Pictures Please - Hannah Aizenmann
pygotham2014
0
180
Python and Julia. Why do we need another language? - Dwight J. Browne
pygotham2014
1
400
Weather of The Century - J. Randall Hunt
pygotham2014
0
130
Setting up your Python development environment in IPython - Daniel Kronovet
pygotham2014
0
110
Failing With Grace - Sean O'Connor
pygotham2014
0
130
Caching up and down the stack in Django - James Meickle
pygotham2014
1
110
Other Decks in Programming
See All in Programming
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
270
protojson における文字化けの扱い
kazuki1023
0
390
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
300
AI Augmentation Techniques with Liberty
ivargrimstad
1
460
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
330
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.8k
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
310
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
200
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
370
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
200
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
4
1.5k
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
260
Featured
See All Featured
KATA
mclloyd
PRO
35
16k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.7k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
300
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
850
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
300
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
350
Scaling GitHub
holman
464
140k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.7k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
RailsConf 2023
tenderlove
30
1.6k