containers revolutions

49
CONTAINERS REVOLUTIONS 10-SEPT-2015 #DOCKERCOR

Upload: alfredo-edye

Post on 15-Apr-2017

438 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Containers Revolutions

CONTAINERS REVOLUTIONS10-SEPT-2015

#DOCKERCOR

Page 2: Containers Revolutions

Alfredo Edye @alfredoedye

Engineering Mgr @ARRIS

Page 3: Containers Revolutions

Agenda

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

Page 4: Containers Revolutions

CONTAINERS REVOLUTION

#DOCKERCOR

Page 5: Containers Revolutions

Malcolm P. McLean (1914-2001)

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

Page 6: Containers Revolutions

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

Page 7: Containers Revolutions

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

Page 8: Containers Revolutions

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

Page 9: Containers Revolutions

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

Page 10: Containers Revolutions

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).

Page 11: Containers Revolutions

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

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

Page 12: Containers Revolutions

1957

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

Page 13: Containers Revolutions

Standarization

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

Page 14: Containers Revolutions

Resistance

Page 15: Containers Revolutions

Revolution

Page 16: Containers Revolutions

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”

Page 17: Containers Revolutions

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

Page 18: Containers Revolutions

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

which make over 200 million trips per year.

Page 19: Containers Revolutions

Around 90% of every purchased item has been

shipped inside a container.

Page 20: Containers Revolutions

DOCKER START

#DOCKERCOR

Page 21: Containers Revolutions

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”

Page 22: Containers Revolutions

• 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?

Page 23: Containers Revolutions

How is this different from VMs?

Virtual Machines Containers

Page 24: Containers Revolutions

Docker Architecture

Page 25: Containers Revolutions

Docker’s Mission

Build, ship and run any application, anywhere

Page 26: Containers Revolutions

Build: package your application

Dockerfile

FROM ubuntu:latestMAINTAINER Alfredo Edye [email protected] 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

Page 27: Containers Revolutions

Ship: move that container from a machine to another

https://hub.docker.com/

pushpull

Page 28: Containers Revolutions

Run: execute that container

Page 29: Containers Revolutions
Page 30: Containers Revolutions

Meet today’s sample app

#dockercor

Docker-compose.ymlDocker-tweets

Page 31: Containers Revolutions

Meet today’s workflow

github Dockerhub Tutum AWS

Page 32: Containers Revolutions

Workflow Demo

Page 33: Containers Revolutions

WHY DOCKER

#DOCKERCOR

Page 34: Containers Revolutions

PORTABILITY

Page 35: Containers Revolutions

STANDARIZED ENVIRONMENT

Page 36: Containers Revolutions

DEVOPSPIPELINES

Page 37: Containers Revolutions

SCALING

Docker <3

Microservices

Page 38: Containers Revolutions

LESSONS LEARN

#DOCKERCOR

Page 39: Containers Revolutions

Don’t build a platform

What we want to build…

Page 40: Containers Revolutions

Don’t build a platform

What we actually build…

Page 41: Containers Revolutions

Orchestration is hard

Page 42: Containers Revolutions

Standarize

Page 43: Containers Revolutions

Speeds up time from development to production

Page 44: Containers Revolutions

Freedom Inside

Page 45: Containers Revolutions
Page 46: Containers Revolutions

Size Matters

Page 47: Containers Revolutions

Move Forward

Page 48: Containers Revolutions

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

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

Containers• Freedom Inside• Size Matters• Move Forward

Page 49: Containers Revolutions