Containers Revolutions

Post on 15-Apr-2017

438 views 0 download

Transcript of Containers Revolutions

CONTAINERS REVOLUTIONS10-SEPT-2015

#DOCKERCOR

Alfredo Edye @alfredoedye

Engineering Mgr @ARRIS

Agenda

•Containers Revolutions•Docker jumpstart•Why Docker•Lessons Learnt

CONTAINERS REVOLUTION

#DOCKERCOR

Malcolm P. McLean (1914-2001)

http://hbswk.hbs.edu/item/5026.html

1930’shttp://depts.washington.edu/dock/magdenArchive.shtml

"Korean-war-merchant-marine-load (1950-1953)".

http://www.containerhomeplans.org/2015/03/a-complete-history-of-the-shipping-container/

https://en.wikipedia.org/wiki/Intermodal_freight_transport

http://www.researchgate.net/publication/268153158_Stanisaw_Rodowicz_Eng._the_Forgotten_Pioneer_of_Containerization_in_Poland

1919

It was strong, standardized, stackable, easy to load/unload and lockable (which made it theft resistant).

"Ideal X” https://en.wikipedia.org/wiki/T2_tanker

https://en.wikipedia.org/wiki/SS_Ideal_X

1957

NOT JUST ONE TRAILER, OR TWO OF THEM, OR FIVE, OR A DOZEN, BUT HUNDREDS, ON ONE SHIP.

Standarization

https://www.google.com/patents/US2853968

Resistance

Revolution

Malcolm P. McLean (1914-2001)

http://hbswk.hbs.edu/item/5026.html

“Low transport costs helped make it economically sensible for a factory in China to produce Barbie dolls with Japanese hair, Taiwanese plastics and American colorants, and ship them off to girls all over the world”

The cost to ship cargo has dropped more than 90%.

There are more than 17 million shipping containers in the world,

which make over 200 million trips per year.

Around 90% of every purchased item has been

shipped inside a container.

DOCKER START

#DOCKERCOR

What is Docker?“Open source engine that leverage LXC and UnionFS to package and application and its dependencies in a virtual container that can run on any Linux server”

• Not a new concept• LXC are available since

kernel 2.6.27• chroot ~ 1980

• ~Lightweight VM• Own Process Space• Own network• SHARE Kernel with Host

What is Docker?

How is this different from VMs?

Virtual Machines Containers

Docker Architecture

Docker’s Mission

Build, ship and run any application, anywhere

Build: package your application

Dockerfile

FROM ubuntu:latestMAINTAINER Alfredo Edye alfredo.edye@gmail.comRUN apt-get updateRUN apt-get install -y nginxRUN echo 'Hi, I am your container!!!!' \> /usr/share/nginx/html/index.htmlCMD ["nginx", "-g", "daemon off;" ]EXPOSE 80

Image

Ship: move that container from a machine to another

https://hub.docker.com/

pushpull

Run: execute that container

Meet today’s sample app

#dockercor

Docker-compose.ymlDocker-tweets

Meet today’s workflow

github Dockerhub Tutum AWS

Workflow Demo

WHY DOCKER

#DOCKERCOR

PORTABILITY

STANDARIZED ENVIRONMENT

DEVOPSPIPELINES

SCALING

Docker <3

Microservices

LESSONS LEARN

#DOCKERCOR

Don’t build a platform

What we want to build…

Don’t build a platform

What we actually build…

Orchestration is hard

Standarize

Speeds up time from development to production

Freedom Inside

Size Matters

Move Forward

http://hbswk.hbs.edu/item/5026.html

• Don’t build a platform• Orchestration is hard• Standardize

Containers• Freedom Inside• Size Matters• Move Forward