Containers - revolutionizing software of all sizes
-
Upload
rick-osowski -
Category
Technology
-
view
410 -
download
1
Transcript of Containers - revolutionizing software of all sizes
Containers – revolutionizing software of all sizesRick Osowski, @rosowskiMADRID · NOV 27-28 · 2015
MADRID · NOV 27-28 · 2015
Let’s get to know each other…
20 Questions!!!
MADRID · NOV 27-28 · 2015
20 Questions…• Who considers themselves a developer?• Who considers themselves a developer manager?• Who considers themselves an ops person?• Who works for a startup? An enterprise?• Who has heard of Docker before?• Who uses Docker now?• Who was at DockerCon?
MADRID · NOV 27-28 · 2015
What is a container?
What is a container?
MADRID · NOV 27-28 · 2015
Static website
Web frontend
User DBQueue
Analytics DB
Background workersAPI endpoint
nginx 1.5 + modsecurity + openssl + bootstrap 2
postgresql + pgv8 + v8 hadoop + hive + thrift + OpenJDK
Ruby + Rails + sass + Unicorn
Redis + redis-sentinel
Python 3.0 + celery + pyredis + libcurl + ffmpeg + libopencv + nodejs + phantomjs
Python 2.7 + Flask + pyredis + celery + psycopg + postgresql-client
Development VM
QA serverPublic Cloud
Disaster recoveryContributor’s laptop
Production Servers
The Challenge
Production Cluster
Customer Data Center
MADRID · NOV 27-28 · 2015
Cargo Transport Pre-1960
MADRID · NOV 27-28 · 2015
Solution: Intermodal Shipping Container
…in between, can be loaded and unloaded, stacked, transported efficiently over long distances, and transferred from one mode of transport to another
A standard container that is loaded with virtually any goods, and stays sealed until it reaches final delivery.
© IBM Corporation 8
MADRID · NOV 27-28 · 2015
Static website Web frontend User DB Queue Analytics DB
QA server Public Cloud
Docker is a shipping container system for code
Production Cluster
Customer Data Center
Development VM Contributor’s
laptop
…that can be manipulated using standard operations and run consistently on virtually any hardware platform
An engine that enables any payload to be encapsulated as a lightweight, portable, self-sufficient container…
MADRID · NOV 27-28 · 2015
Why it works — separation of concerns
Oscar the Ops Guy
Worries about what’s “outside” the container• Logging• Remote access• Monitoring• Network config
All containers start, stop, copy, attach, migrate, etc. the same way
Dan the Developer
Worries about what’s “inside” the container• His code• His Libraries• His Package Manager• His Apps• His Data
All Linux servers look the same
MADRID · NOV 27-28 · 2015
Docker ContainersA technical view into the shared and layered file systems technology
Docker uses a copy-on-write (union) filesystemNew files(& edits) are only visible to current/above layers
Layers allow for highly-efficient reuseMore containers per host – higher overall server utilizationFaster start-up/download time – base layers are "cached"
Filesystem
Base OS / Kernel
Fedora Ubuntu
tomcat tomcatliberty
CNTR1 CNTR2 CNTR3 CNTR4
app1 app2 app4app3
Layer
Layer
Layer
MADRID · NOV 27-28 · 2015
Docker MissionDocker is an open platform for building distributed applications for developers and system administrators.
Build Ship Run
Anywhere
Any App
MADRID · NOV 27-28 · 2015
BUILD
MADRID · NOV 27-28 · 2015
MADRID · NOV 27-28 · 2015
SHIP
MADRID · NOV 27-28 · 2015
MADRID · NOV 27-28 · 2015
Docker Delivers Innovation, Speed and Savings
Deploys 1,500X a week
“Docker gives us more speed and speed for us is a huge measure of our transformation. Getting value to the customers faster, that’s where Docker helps us.”
CI jobs run over 60% faster
“Docker is a natural fit for us. We wanted testing environments that
we could change easily and Docker handles this for us”
Ships 100X a day
“I love Docker. It’s simple for developers and it works for ops.
There is a really positive emotional connection that
Docker has created with our developer community “
MADRID · NOV 27-28 · 2015
RUN
MADRID · NOV 27-28 · 2015
“Over 40% of Docker users are running Docker in production.”
Docker CEO Ben Golub, @golubbe
MADRID · NOV 27-28 · 2015
So what does this all mean?
Dockerized Distributed Apps in the Enterprise
E-Commerce Media Life Sciences Finance
Vertical Search IT SaaS IaaS PaaS
MADRID · NOV 27-28 · 2015
What’s next?
MADRID · NOV 27-28 · 2015And many more available at stackshare.io
Architecture from a large entertainment company
Runtimes
Cloud-Native Applications
MADRID · NOV 27-28 · 2015
Runtimes
Cloud-Native ApplicationsArchitecture from a large entertainment company
And many more available at stackshare.io
MADRID · NOV 27-28 · 2015
Moving from monoliths to microservices…
Scaling a monolith Scaling microservices
Container managers:
Kubernetes Mesos / Marathon Fleet
Microservice frameworks:
Yelp’s PaaSTa MANTL.io Weave IBM Bluemix
MADRID · NOV 27-28 · 2015
How can you get started?o Piece by pieceo Small use caseso Grow with successeso Understand the technology
o Then implement on something that brings value to all your necessary platform components…
27© IBM Corporation
IBM Containers – A hosted Docker runtime• IBM-managed Docker registry with pre-built Node, Java, and other runtimes• Private Docker Registry for all your containers• GUI & CLI access to manage all your containers• External persistent storage volumes, hosted on Bluemix• Pre-integrated access to 150+ Bluemix services• Hosted deployment pipeline to automate build & deployment• Single container deployments & resilient container groups• Integrated monitoring & logging via managed, multi-tenant ELK stack• Vulnerability Advisor automatically scans your pushed images
Get started at https://bluemix.net
MADRID · NOV 27-28 · 2015
Next Steps / References Docker Docs - https://docs.docker.com/engine/userguide/
Docker Getting Started - https://docs.docker.com/mac/started/
Docker Cheat Sheet - https://github.com/wsargent/docker-cheat-sheet
IBM Containers – https://bluemix.net
Getting Started with IBM Containers – https://ibm.biz/BdHvRi
IBM Containers Labs - https://github.com/osowski/ibm-containers-codemotion
MADRID · NOV 27-28 · 2015
Gracias!Keep in touch via https://twitter.com/rosowski