Docker at CloudHero
Andrei 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 service
25+ million songs on any device
50+ Tb of Data
30 Servers
2 Datacenters
CloudHero - Bucharest 2015
Life before Docker
CloudHero - Bucharest 2015
Not so long ago
Add new machine
Ssh root@newmachine
Apt-get install 
Create salt formula
Deploy code
QA
Live
CloudHero - Bucharest 2015
What did go wrong ?
Slow deployment
Different package versions across all servers
Different os/pkg version across prod/test/dev
env
CloudHero - Bucharest 2015
What did go wrong ?
Services not working properly
Slow debugging
No one’s fault
Downtime
CloudHero - Bucharest 2015
We needed a change
Stable and unified infrastructure
Fast 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 images
Build other images on top of them
Share them
Test them
Run tested images in production
Where it all started
CloudHero - Bucharest 2015
Dockerfile
FROM debian:wheezy
MAINTAINER andrei@cloudhero.io
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
Standardization
10 – 20% less usage on host machine (this
means more running containers)
Faster deployments of new services
<1s boot time
Fast rollback
Portability
What’s next?
CloudHero - Bucharest 2015
Container migration / live ?
Automated container test
Dockerizing even more services
Questions?
CloudHero - Bucharest 2015

Using Docker in Production

  • 1.
    Docker at CloudHero AndreiManea @andrei821 CloudHero - Bucharest 2015
  • 2.
    CloudHero - Bucharest2015 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:
  • 3.
    Case Study CloudHero -Bucharest 2015
  • 4.
    Zonga Romania largest commercialstreaming service 25+ million songs on any device 50+ Tb of Data 30 Servers 2 Datacenters CloudHero - Bucharest 2015
  • 5.
  • 6.
    Not so longago Add new machine Ssh root@newmachine Apt-get install  Create salt formula Deploy code QA Live CloudHero - Bucharest 2015
  • 7.
    What did gowrong ? Slow deployment Different package versions across all servers Different os/pkg version across prod/test/dev env CloudHero - Bucharest 2015
  • 8.
    What did gowrong ? Services not working properly Slow debugging No one’s fault Downtime CloudHero - Bucharest 2015
  • 9.
    We needed achange Stable and unified infrastructure Fast upgrade Even faster deployment CloudHero - Bucharest 2015
  • 10.
    Hello Docker ! Wehired a whale to help us CloudHero - Bucharest 2015
  • 11.
    What did thewhale do ? CloudHero - Bucharest 2015 Build images Build other images on top of them Share them Test them Run tested images in production
  • 12.
    Where it allstarted CloudHero - Bucharest 2015 Dockerfile FROM debian:wheezy MAINTAINER andrei@cloudhero.io RUN apt-get update && apt-get install –y php5-fpm …
  • 13.
    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
  • 14.
    What have weachieved? CloudHero - Bucharest 2015 Standardization 10 – 20% less usage on host machine (this means more running containers) Faster deployments of new services <1s boot time Fast rollback Portability
  • 15.
    What’s next? CloudHero -Bucharest 2015 Container migration / live ? Automated container test Dockerizing even more services
  • 16.