docker: redistributing devops cards, on the way to paas

Download Docker: Redistributing DevOps cards, on the way to PaaS

Post on 14-Apr-2017

711 views

Category:

Internet

0 download

Embed Size (px)

TRANSCRIPT

USI 2014

Docker : Redistributing DevOps cards,on the way to PaaS

16th june, 2014Arnaud MAZINDevOps consultantOcto Technology@ArnaudMazinAdrien BLINDDevOps coach@adrienblind

www.usievents.com#USI2014

1

www.usievents.com#USI2014

2

www.usievents.com#USI2014

3

#1 What is Docker?

#2 Opportunities leveraged by Docker

#3 Take-away

www.usievents.com#USI2014

4

#1 What is Docker?

#2 Opportunities leveraged by Docker

#3 Take-away

www.usievents.com#USI2014

5

A technology enabling to standardize packaging and deployment operations

www.usievents.com#USI2014

6

#1 What is Docker ?Docker key properties

PO DI LI SORTABLESPOSABLEVECIAL

www.usievents.com#USI2014

7

#1 What is Docker ?

PO DI LI SORTABLESPOSABLEVECIAL(Almost)

www.usievents.com#USI2014

8

IsolationVirtualisation

PORTABLEDILISOVMVMVMHypervisorHardwareApp.MDWApp.MDWApp.MDWKernelKernelKernelOSbaseOSbaseOSbaseKernelHardware or VMContainerApp.OSbaseMDWContainerApp.OSbaseMDWContainerApp.MDWOSbase

www.usievents.com#USI2014

9

PORTABLEDILISO

Limited adherence with the subsequent OSOnly a recent Linux kernel is requiredDocker lightweight agent to be installed

Few parametrization required

DB_IP=1.2.3.4DB_LOGIN=dblogin

20KgMax

www.usievents.com#USI2014

10

#1 What is Docker ?

PO DI LI SORTABLESPOSABLEVECIAL

www.usievents.com#USI2014

11

Rebuild vs UpgradePODISPOSABLELISOReduce building and deployment costs

www.usievents.com#USI2014

12

PODISPOSABLELISO

FROM ubuntu:latestRUN apt-get install -y memcachedEXPOSE 11211CMD ["/usr/bin/memcached"]USER daemon

Cattle vs Pet

www.usievents.com#USI2014

13

Using applicative storage servicesAmazon S3, OpenStack SwiftMongoDB, Hadoop, Cassandra, Elastic Search, Amazon RDS...

By default, you can leverage on traditional systemContainers dedicated to dataMounting points on the host

Extract data from the containerPODISPOSABLELISO

www.usievents.com#USI2014

14

Two major trendsFrequency of application deploymentsCommoditization and consumerization of the infrastructure (Low-cost/SLA)

High availability and scalability to be handled by the application better than the infrastructure

PODISPOSABLELISOImpacts on application architecture

www.usievents.com#USI2014

15

#1 What is Docker ?

PO DI LI SORTABLESPOSABLEVECIAL

www.usievents.com#USI2014

16

Versionned and incremental imagesFile systemConfiguration parameters (ports, processes...)

Git style DiffsVersion treesVersion labelling

PODILIVESO

www.usievents.com#USI2014

17

Layered FSCentOS baseUbuntu baseapt-get install rubyInstallapp1Add new repoapt-get install nginxAdd config fileyum install openjdkyum install tomcat7Install app2Running cont.ARunning cont.DRunning cont.BRunning cont.C

PODILIVESO

www.usievents.com#USI2014

18

#1 What is Docker ?

PO DI LI SORTABLESPOSABLEVECIAL

www.usievents.com#USI2014

19

Registries

PODILISOCIALDocker HubConsoleRegistryCollaboration toolsAutomated build serviceWebHooksDockerHub APICommunity toolsPublic registriesVote for valuable imagesTrusted imagesOfficial images Continuous build toolingEnterprise, private registries

www.usievents.com#USI2014

20

#1 What is Docker ?Docker technologyCopy on Write storageAUFSDevice MapperBtrfsResources isolationLXCcGroups, namespacesIpTablesDockerEngine APIDocker Engine

Major actorsDocker Hub

www.usievents.com#USI2014

21

#1 What is Docker?

#2 Opportunities leveraged by Docker

#3 Take-away

www.usievents.com#USI2014

22

#1 What is Docker?

#2 Opportunities leveraged by Docker

#2.1 Docker invented the CaaS

#2.2 Docker eases PaaS adoption

#3 Take-away

www.usievents.com#USI2014

23

#2.1 Docker invented the CaaSIaaSCapacity (VM, Stockage)PaaSApplication (code)SaaSService

www.usievents.com#USI2014

24

#2.1 Docker invented the CaaSIaaSCapacity (VM, Stockage)PaaSAppli. (code)SaaSServiceCaaSApplicative containers

www.usievents.com#USI2014

25

#2.1 Docker invented the CaaS

Apps teamIn the containerIgnore where the container run (dev computer, prod)

Knows how to build the container and operate applications

You build it, you run it!

Infra teamOut of the containerIgnore how the container images are built

Knows how to deal with huge amount of containers

www.usievents.com#USI2014

26

Deploy#2.1 Docker invented the CaaS [Apps Side]Continuous integration of Apps

Build once,run everywherePublic registry

Enterprise registry

Dev

SCM

Soft. factory

TESTContainer(s)

UATContainer(s)

PRODContainer(s)

Test

www.usievents.com#USI2014

27

Internal or external offer from the enteprise

Whished propertiesDeal with IaaS topics (multi-host, multi-tenancy)Expose an API enabling to manage containersExpose a transversal services API (load balancers, DNS, service directories such as ZooKeeper)Integrate support functions (Manage accounting, billing...)#2.1 Docker invented the CaaS [Ops Side]Infrastructure offers an on-demand container service

www.usievents.com#USI2014

28

Containerized products

From the community registry to a real marketplace ?#2.1 Docker invented the CaaSEmergence of a virtual appliance offer

(Source: docker.io)

www.usievents.com#USI2014

29

#1 What is Docker?

#2 Opportunities leveraged by Docker

#2.1 Docker invented the CaaS

#2.2 Docker eases PaaS adoption

#3 Take-away

www.usievents.com#USI2014

30

#2.2 Docker eases PaaS adoptionSource code is the real portable content

Git

PaaS

Pilote & push codeDocker may contribute off the hood

www.usievents.com#USI2014

31

#2.2 Docker eases PaaS adoptionSeveral new initiatives leverage on DockerFlynn, Deis, OpenShift

Objective : propose a PaaS OpenSource solutionBy proposing an Heroku style interface (git push)By implementing their own Docker CaaSTechnical servicesDocker images ready to install buildpacks

www.usievents.com#USI2014

32

#1 What is Docker?

#2 Opportunities leveraged by Docker

#3 Take-away

www.usievents.com#USI2014

33

#3 Take-awayCombine both PaaS & CaaS approachesPaaS

Code

CaaS

Use both models to address all casesImage

www.usievents.com#USI2014

34

#3 Take-away

Cloud

DevOpsCaaSPaaSContinuous DeliveryArchitectureOrganizationTime to marketQualit

Opportunities

www.usievents.com#USI2014

35

Web giants already started to move on

Create you own Docker sandbox

Contribute to the community

#3 Take-awayThe product gets mature, use it!

www.usievents.com#USI2014

36

Recommended

View more >