using docker in production

16
Docker at CloudHero Andrei Manea @andrei821 CloudHero - Bucharest 201

Upload: andrei-manea

Post on 08-Aug-2015

231 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Using Docker in Production

Docker at CloudHeroAndrei Manea

@andrei821

CloudHero - Bucharest 2015

Page 2: Using Docker in Production

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:

Page 3: Using Docker in Production

Case Study

CloudHero - Bucharest 2015

Page 4: Using Docker in Production

Zonga

Romania largest commercial streaming service25+ million songs on any device

50+ Tb of Data30 Servers

2 Datacenters

CloudHero - Bucharest 2015

Page 5: Using Docker in Production

Life before Docker

CloudHero - Bucharest 2015

Page 6: Using Docker in Production

Not so long ago

Add new machineSsh root@newmachine

Apt-get install Create salt formula

Deploy codeQALive

CloudHero - Bucharest 2015

Page 7: Using Docker in Production

What did go wrong ?

Slow deploymentDifferent package versions across all servers

Different os/pkg version across prod/test/dev env

CloudHero - Bucharest 2015

Page 8: Using Docker in Production

What did go wrong ?

Services not working properlySlow debuggingNo one’s fault

Downtime

CloudHero - Bucharest 2015

Page 9: Using Docker in Production

We needed a change

Stable and unified infrastructureFast upgrade

Even faster deployment

CloudHero - Bucharest 2015

Page 10: Using Docker in Production

Hello Docker !

We hired a whale to help us

CloudHero - Bucharest 2015

Page 11: Using Docker in Production

What did the whale do ?

CloudHero - Bucharest 2015

Build imagesBuild other images on top of them

Share themTest them

Run tested images in production

Page 12: Using Docker 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…

Page 13: Using Docker in Production

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

Page 14: Using Docker in Production

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

Page 15: Using Docker in Production

What’s next?

CloudHero - Bucharest 2015

Container migration / live ?Automated container test

Dockerizing even more services

Page 16: Using Docker in Production

Questions?

CloudHero - Bucharest 2015

@@