Using Docker in Production
-
Upload
andrei-manea -
Category
Technology
-
view
234 -
download
1
Transcript of Using Docker in Production
Docker at CloudHeroAndrei Manea
@andrei821
CloudHero - Bucharest 2015
CloudHero - Bucharest 2015
Who are we ?• Consultancy and Infrastructure management
• In production since 2008 (known as Mondo IT)
• Working to launch CloudHero:
• full stack management and reporting product aimed towards cloud, servers and containers, with focus on both business leaders & developers
We are loved and trusted by:
Case Study
CloudHero - Bucharest 2015
Zonga
Romania largest commercial streaming service25+ million songs on any device
50+ Tb of Data30 Servers
2 Datacenters
CloudHero - Bucharest 2015
Life before Docker
CloudHero - Bucharest 2015
Not so long ago
Add new machineSsh root@newmachine
Apt-get install Create salt formula
Deploy codeQALive
CloudHero - Bucharest 2015
What did go wrong ?
Slow deploymentDifferent package versions across all servers
Different os/pkg version across prod/test/dev env
CloudHero - Bucharest 2015
What did go wrong ?
Services not working properlySlow debuggingNo one’s fault
Downtime
CloudHero - Bucharest 2015
We needed a change
Stable and unified infrastructureFast upgrade
Even faster deployment
CloudHero - Bucharest 2015
Hello Docker !
We hired a whale to help us
CloudHero - Bucharest 2015
What did the whale do ?
CloudHero - Bucharest 2015
Build imagesBuild other images on top of them
Share themTest them
Run tested images in production
Where it all started
CloudHero - Bucharest 2015
Dockerfile
FROM debian:wheezyMAINTAINER [email protected]
RUN apt-get update && apt-get install –y php5-fpm…
Images & Builds
CloudHero - Bucharest 2015
Create Dockerfiles
Build images
Test
Build for production
Deploy on host
Create DEV Dockerfiles
Build images
Deploy on DEV host
Add new features
Test
What have we achieved?
CloudHero - Bucharest 2015
Standardization10 – 20% less usage on host machine (this
means more running containers)Faster deployments of new services
<1s boot timeFast rollbackPortability
What’s next?
CloudHero - Bucharest 2015
Container migration / live ?Automated container test
Dockerizing even more services
Questions?
CloudHero - Bucharest 2015
@@