SlideShare a Scribd company logo
Docker + MongoDB
Alvin Richards, Enterprise Products Lead
alvin@docker.com
@jonnyeight
Part One – What is Docker?
Docker Mission – Make the Internet Programmable
3
Build	
   Ship	
   Run	
  
Open	
  Standards	
  
Plumbing	
  
Pla6orm	
  
Solu8ons	
  
Engine
Machine
ComposeSwarm
Distribution
Image specContainer run-time spec
RunC
Notary
Docker
Trusted
Registry
Project
"Orca"
 	
  	
  	
  	
  	
  Open	
  Container	
  Ini-a-ve	
  
	
  	
  	
  	
  	
  	
  RunC	
  
	
  	
  	
  	
  	
  	
  notary	
  
4
Open Standards & Plumbing
Open Container Initiative (OCI)
Coalition of industry leaders join forces to eliminate fragmentation
•  Form a vendor-neutral, open source governance model under the Linux
Foundation
•  Establish common standards for container format and runtime
•  Docker donated its container format, runtime and associated specifications
•  Appoint maintainers for the libcontainer project
5
h3p://www.opencontainers.org/	
  
 	
  	
  	
  	
  	
  Networking	
  	
  
	
  	
  	
  	
  	
  	
  Plugins	
  
	
  	
  	
  	
  	
  	
  Orchestra-on	
  
6
Docker Platform
Networking
8
Before	
  
•  Inflexible
•  Single host
•  Limited to one network
X
•  Container SDN
•  Distributed networking
•  Portable across networks
•  Plug ins to broad ecosystem
ABer	
  
Plugins
Pluggable Architecture to extend Docker functionality
•  Introducing Networking and Volume plugins
•  For Users: Portability and choice for developers and ops
•  For Partners: Easily integrate and access Docker users
•  Collaboration with Cluster HQ, Glider Labs, Weave
9
Networking
Volumes
Docker	
  Engine	
  
Plug	
  ins	
  >	
  docker	
  
Docker client
Orchestration Across the App Lifecycle
	
  	
  	
  	
  	
  	
  Docker	
  Machine	
  	
  
	
  	
  	
  	
  	
  	
  Docker	
  Swarm	
  
	
  	
  	
  	
  	
  	
  Docker	
  Compose	
  
10
Docker Compose and Swarm
•  Consistent developer experience with flexible Swarm backends
•  Integrated with Docker Networking
•  Mesos backend beta available
•  Amazon ECS backend collaboration WIP
11
docker	
  
Docker client
Coming Soon!
Running Docker in Production
Three	
  Key	
  Use	
  Cases	
  
Produc-on	
  Requirements	
  
Commercial	
  Availability	
  
12
Continuous Integration and Delivery
13
Developer	
  
Version	
  
control	
  
1.	
  Development	
   2.	
  Test	
   3.	
  Stage	
  /	
  Produc-on	
  
QA	
  /	
  QE	
  
Sysadmin	
  
Video from DockerCon
Containers as a Service
Developer	
   Sysadmin	
  
DevOps	
  
Tomcat
Jenkins
MongoDB Deployment	
  
Video from DockerCon
SysAdmins
DBAs
Data Processing Pipelines
Data Scientist
$ docker
Data Nodes
Video from DockerCon
Docker Enterprise Solutions
16
Server or Cloud Hosted Registry
Docker Engine
Stable	
   Secure	
   Responsive	
  
Docker Trusted
Registry
Docker Hub
or
Commercial Subscruption
Get it here!
Part Two: Development through to Production
•  Build & Run an App in Development
–  Python + MongoDB
•  Deploy to a Swarm cluster in Production
–  Scale Web services
•  Deploy new MongoDB Cluster in Production
Lets build an App!
19
web	
  
mongodb	
  
Development
python / flask
Scale in Production
20
web2	
   web3	
   web4	
   webN	
  
mongos	
  
cfg3	
  cfg2	
  cfg1	
  
web	
   web1	
  
mongodb	
  
Development
…
Production
HA	
  Proxy	
  
rs1a	
  
rs1b	
  
rs1c	
  
rs2a	
  
rs2b	
  
rs2c	
  
Demo 1 : Build an App
21
Roll the App to Production behind HA Proxy
22
web	
   web1	
  
Development Production
mongodb	
  
HA	
  Proxy	
  
mongodb	
  
Scale the web tier
23
web2	
   web3	
   web4	
   webN	
  web	
   web1	
  
mongodb	
  
Development
…
Production
mongodb	
  
HA	
  Proxy	
  
Demo 2 : Scale the Web Tier
24
Deploy a sharded cluster
25
web2	
   web3	
   web4	
   webN	
  
mongos	
  
cfg3	
  cfg2	
  cfg1	
  
web	
   web1	
  
mongodb	
  
Development
…
Production
mongodb	
  
HA	
  Proxy	
  
rs1a	
  
rs1b	
  
rs1c	
  
rs2a	
  
rs2b	
  
rs2c	
  
Migrate to the new cluster
27
web2	
   web3	
   web4	
   webN	
  
mongos	
  
cfg3	
  cfg2	
  cfg1	
  
web	
   web1	
  
mongodb	
  
Development
…
Production
mongodb	
  
HA	
  Proxy	
  
rs1a	
  
rs1b	
  
rs1c	
  
rs2a	
  
rs2b	
  
rs2c	
  
Demo 3 : Scale the Database
28
Storage: Inside or outside the container?
Inside
•  Encapsulation of Concerns
29
Host
daemon
container
Host
daemon
container e.g.
SSD
e.g.
EBS
Outside
•  Separation of concerns
•  Storage Features (e.g. snapshots)
/data/db
/mnt/xx:/data/db
Summary
• Define	
  Container,	
  their	
  contents	
  and	
  how	
  they	
  work	
  together	
  once	
  
• Deploy	
  the	
  same	
  images	
  in	
  Dev,	
  Pre-­‐Prod	
  and	
  Produc-on	
  across	
  
PlaZorms	
  
One	
  solu-on	
  from	
  Dev	
  -­‐>	
  Produc-on	
  
• Ops	
  define	
  the	
  whitelisted	
  images,	
  security	
  policies	
  etc.	
  
• Dev	
  use	
  approved	
  images	
  to	
  build	
  upon	
  
• Eliminate	
  the	
  complexity	
  (and	
  cost)	
  of	
  deployment	
  
Running	
  Docker	
  &	
  MongoDB	
  in	
  Produc-on	
  
30
Thanks and Q&A
•  Code
–  https://github.com/alvinr/docker-demo/tree/master/dockercon15demo
•  alvin@docker.com
•  @jonnyeight
31

More Related Content

What's hot (20)

PDF
Using Containers for Continuous Integration and Continuous Delivery
Carlos Sanchez
 
PPTX
Containers without docker
Ben Hall
 
PDF
Docker Orchestration at Production Scale
Docker, Inc.
 
PPTX
迎接嶄新的Windows容器叢集架構:Kubernetes
Will Huang
 
PPTX
HP Advanced Technology Group: Docker and Ansible
Patrick Galbraith
 
PDF
Docker on Windows
Stefan Scherer
 
PDF
Docker for Java Developers - Fabiane Nardon and Arun gupta
Docker, Inc.
 
PPTX
KubeCon EU 2016: Multi-Tenant Kubernetes
KubeAcademy
 
PDF
Effective Data Pipelines with Docker & Jenkins - Brian Donaldson
Docker, Inc.
 
PDF
DockerCon EU 2015: The Glue is the Hard Part: Making a Production-Ready PaaS
Docker, Inc.
 
PDF
Microservices at scale with docker and kubernetes - AMS JUG 2017
Arjen Wassink
 
PDF
Introduction to Kubernetes
Ross Kukulinski
 
PPTX
Introduction kubernetes 2017_12_24
Sam Zheng
 
PPTX
LinuxKit: the first five months by Justin Cormack & Riyaz Faizullabhoy (Docker)
Docker, Inc.
 
PDF
Activision's Skypilot: Delivering Amazing Game Experiences Through Containeri...
Docker, Inc.
 
PPTX
Windows Server Containers- How we hot here and architecture deep dive
Docker, Inc.
 
PPTX
Docker session IV: Docker Compose and Docker Swarm
Degendra Sivakoti
 
PDF
Kubernetes and Hybrid Deployments
Sandeep Parikh
 
PDF
Kubernetes in Docker
Docker, Inc.
 
PPTX
Containerd internals: building a core container runtime
Docker, Inc.
 
Using Containers for Continuous Integration and Continuous Delivery
Carlos Sanchez
 
Containers without docker
Ben Hall
 
Docker Orchestration at Production Scale
Docker, Inc.
 
迎接嶄新的Windows容器叢集架構:Kubernetes
Will Huang
 
HP Advanced Technology Group: Docker and Ansible
Patrick Galbraith
 
Docker on Windows
Stefan Scherer
 
Docker for Java Developers - Fabiane Nardon and Arun gupta
Docker, Inc.
 
KubeCon EU 2016: Multi-Tenant Kubernetes
KubeAcademy
 
Effective Data Pipelines with Docker & Jenkins - Brian Donaldson
Docker, Inc.
 
DockerCon EU 2015: The Glue is the Hard Part: Making a Production-Ready PaaS
Docker, Inc.
 
Microservices at scale with docker and kubernetes - AMS JUG 2017
Arjen Wassink
 
Introduction to Kubernetes
Ross Kukulinski
 
Introduction kubernetes 2017_12_24
Sam Zheng
 
LinuxKit: the first five months by Justin Cormack & Riyaz Faizullabhoy (Docker)
Docker, Inc.
 
Activision's Skypilot: Delivering Amazing Game Experiences Through Containeri...
Docker, Inc.
 
Windows Server Containers- How we hot here and architecture deep dive
Docker, Inc.
 
Docker session IV: Docker Compose and Docker Swarm
Degendra Sivakoti
 
Kubernetes and Hybrid Deployments
Sandeep Parikh
 
Kubernetes in Docker
Docker, Inc.
 
Containerd internals: building a core container runtime
Docker, Inc.
 

Viewers also liked (6)

PPTX
App Sharding to Autosharding at Sailthru
MongoDB
 
PPT
No sql matters_2012_keynote
Luca Garulli
 
PPTX
Webinar usando graylog para la gestión centralizada de logs
atSistemas
 
PDF
Monitoring with Graylog - a modern approach to monitoring?
inovex GmbH
 
PPTX
MongoDB World 2016: Keynote
MongoDB
 
PDF
MongoDB Launchpad 2016: MongoDB 3.4: Your Database Evolved
MongoDB
 
App Sharding to Autosharding at Sailthru
MongoDB
 
No sql matters_2012_keynote
Luca Garulli
 
Webinar usando graylog para la gestión centralizada de logs
atSistemas
 
Monitoring with Graylog - a modern approach to monitoring?
inovex GmbH
 
MongoDB World 2016: Keynote
MongoDB
 
MongoDB Launchpad 2016: MongoDB 3.4: Your Database Evolved
MongoDB
 
Ad

Similar to Webinar: From Development to Production with Docker and MongoDB (20)

PDF
Shipping Applications to Production in Containers with Docker
Jérôme Petazzoni
 
PPTX
DockerCon 15 Keynote - Day 2
Docker, Inc.
 
PDF
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Codemotion
 
PPTX
SS Introduction to Docker
Stephane Woillez
 
PDF
Alibaba Cloud Conference 2016 - Docker Enterprise
John Willis
 
PPTX
Docker intro
spiddy
 
PDF
Docker what - Frank Maounis
Frank Maounis
 
PPTX
What's New in Docker - February 2017
Patrick Chanezon
 
PPTX
Docker intro
NoelMc Grath
 
PDF
ContainerDayVietnam2016: Dockerize a small business
Docker-Hanoi
 
PDF
Getting Started with Docker - Nick Stinemates
Atlassian
 
PDF
Rackspace::Solve SFO - Solve(Scale) Featuring Docker CEO Ben Golub
Rackspace
 
PDF
codemotion-docker-2014
Carlo Bonamico
 
PDF
A Shift from Monolith to Microservice using Docker
Ajeet Singh Raina
 
PPTX
The challenge of application distribution - Introduction to Docker (2014 dec ...
Sébastien Portebois
 
PDF
Docker Introduction
Jeffrey Ellin
 
PDF
Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...
Rackspace
 
PDF
Container Days
Patrick Mizer
 
PDF
ContainerDays NYC 2015: "Easing Your Way Into Docker: Lessons From a Journey ...
DynamicInfraDays
 
PDF
Docker 0.11 at MaxCDN meetup in Los Angeles
Jérôme Petazzoni
 
Shipping Applications to Production in Containers with Docker
Jérôme Petazzoni
 
DockerCon 15 Keynote - Day 2
Docker, Inc.
 
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Codemotion
 
SS Introduction to Docker
Stephane Woillez
 
Alibaba Cloud Conference 2016 - Docker Enterprise
John Willis
 
Docker intro
spiddy
 
Docker what - Frank Maounis
Frank Maounis
 
What's New in Docker - February 2017
Patrick Chanezon
 
Docker intro
NoelMc Grath
 
ContainerDayVietnam2016: Dockerize a small business
Docker-Hanoi
 
Getting Started with Docker - Nick Stinemates
Atlassian
 
Rackspace::Solve SFO - Solve(Scale) Featuring Docker CEO Ben Golub
Rackspace
 
codemotion-docker-2014
Carlo Bonamico
 
A Shift from Monolith to Microservice using Docker
Ajeet Singh Raina
 
The challenge of application distribution - Introduction to Docker (2014 dec ...
Sébastien Portebois
 
Docker Introduction
Jeffrey Ellin
 
Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...
Rackspace
 
Container Days
Patrick Mizer
 
ContainerDays NYC 2015: "Easing Your Way Into Docker: Lessons From a Journey ...
DynamicInfraDays
 
Docker 0.11 at MaxCDN meetup in Los Angeles
Jérôme Petazzoni
 
Ad

More from MongoDB (20)

PDF
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB
 
PDF
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB
 
PDF
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB
 
PDF
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB
 
PDF
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB
 
PDF
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB
 
PDF
MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB
 
PDF
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB
 
PDF
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB
 
PDF
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB
 
PDF
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB
 
PDF
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB
 
PDF
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB
 
PDF
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB
 
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB
 
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB
 
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB
 
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB
 
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB
 
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB
 
MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB
 
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB
 
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB
 
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB
 
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB
 
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB
 
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB
 
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB
 
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB
 
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB
 
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB
 
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB
 
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB
 
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB
 

Recently uploaded (20)

PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 

Webinar: From Development to Production with Docker and MongoDB

  • 1. Docker + MongoDB Alvin Richards, Enterprise Products Lead [email protected] @jonnyeight
  • 2. Part One – What is Docker?
  • 3. Docker Mission – Make the Internet Programmable 3 Build   Ship   Run   Open  Standards   Plumbing   Pla6orm   Solu8ons   Engine Machine ComposeSwarm Distribution Image specContainer run-time spec RunC Notary Docker Trusted Registry Project "Orca"
  • 4.            Open  Container  Ini-a-ve              RunC              notary   4 Open Standards & Plumbing
  • 5. Open Container Initiative (OCI) Coalition of industry leaders join forces to eliminate fragmentation •  Form a vendor-neutral, open source governance model under the Linux Foundation •  Establish common standards for container format and runtime •  Docker donated its container format, runtime and associated specifications •  Appoint maintainers for the libcontainer project 5 h3p://www.opencontainers.org/  
  • 6.            Networking                Plugins              Orchestra-on   6 Docker Platform
  • 7. Networking 8 Before   •  Inflexible •  Single host •  Limited to one network X •  Container SDN •  Distributed networking •  Portable across networks •  Plug ins to broad ecosystem ABer  
  • 8. Plugins Pluggable Architecture to extend Docker functionality •  Introducing Networking and Volume plugins •  For Users: Portability and choice for developers and ops •  For Partners: Easily integrate and access Docker users •  Collaboration with Cluster HQ, Glider Labs, Weave 9 Networking Volumes Docker  Engine   Plug  ins  >  docker   Docker client
  • 9. Orchestration Across the App Lifecycle            Docker  Machine                Docker  Swarm              Docker  Compose   10
  • 10. Docker Compose and Swarm •  Consistent developer experience with flexible Swarm backends •  Integrated with Docker Networking •  Mesos backend beta available •  Amazon ECS backend collaboration WIP 11 docker   Docker client Coming Soon!
  • 11. Running Docker in Production Three  Key  Use  Cases   Produc-on  Requirements   Commercial  Availability   12
  • 12. Continuous Integration and Delivery 13 Developer   Version   control   1.  Development   2.  Test   3.  Stage  /  Produc-on   QA  /  QE   Sysadmin   Video from DockerCon
  • 13. Containers as a Service Developer   Sysadmin   DevOps   Tomcat Jenkins MongoDB Deployment   Video from DockerCon
  • 14. SysAdmins DBAs Data Processing Pipelines Data Scientist $ docker Data Nodes Video from DockerCon
  • 15. Docker Enterprise Solutions 16 Server or Cloud Hosted Registry Docker Engine Stable   Secure   Responsive   Docker Trusted Registry Docker Hub or Commercial Subscruption
  • 17. Part Two: Development through to Production •  Build & Run an App in Development –  Python + MongoDB •  Deploy to a Swarm cluster in Production –  Scale Web services •  Deploy new MongoDB Cluster in Production
  • 18. Lets build an App! 19 web   mongodb   Development python / flask
  • 19. Scale in Production 20 web2   web3   web4   webN   mongos   cfg3  cfg2  cfg1   web   web1   mongodb   Development … Production HA  Proxy   rs1a   rs1b   rs1c   rs2a   rs2b   rs2c  
  • 20. Demo 1 : Build an App 21
  • 21. Roll the App to Production behind HA Proxy 22 web   web1   Development Production mongodb   HA  Proxy   mongodb  
  • 22. Scale the web tier 23 web2   web3   web4   webN  web   web1   mongodb   Development … Production mongodb   HA  Proxy  
  • 23. Demo 2 : Scale the Web Tier 24
  • 24. Deploy a sharded cluster 25 web2   web3   web4   webN   mongos   cfg3  cfg2  cfg1   web   web1   mongodb   Development … Production mongodb   HA  Proxy   rs1a   rs1b   rs1c   rs2a   rs2b   rs2c  
  • 25. Migrate to the new cluster 27 web2   web3   web4   webN   mongos   cfg3  cfg2  cfg1   web   web1   mongodb   Development … Production mongodb   HA  Proxy   rs1a   rs1b   rs1c   rs2a   rs2b   rs2c  
  • 26. Demo 3 : Scale the Database 28
  • 27. Storage: Inside or outside the container? Inside •  Encapsulation of Concerns 29 Host daemon container Host daemon container e.g. SSD e.g. EBS Outside •  Separation of concerns •  Storage Features (e.g. snapshots) /data/db /mnt/xx:/data/db
  • 28. Summary • Define  Container,  their  contents  and  how  they  work  together  once   • Deploy  the  same  images  in  Dev,  Pre-­‐Prod  and  Produc-on  across   PlaZorms   One  solu-on  from  Dev  -­‐>  Produc-on   • Ops  define  the  whitelisted  images,  security  policies  etc.   • Dev  use  approved  images  to  build  upon   • Eliminate  the  complexity  (and  cost)  of  deployment   Running  Docker  &  MongoDB  in  Produc-on   30
  • 29. Thanks and Q&A •  Code –  https://github.com/alvinr/docker-demo/tree/master/dockercon15demo •  [email protected] •  @jonnyeight 31