Docker: Redistributing DevOps cards, on the way to PaaS

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

Post on 14-Apr-2017

710 views

Category:

Internet

0 download

Embed Size (px)

TRANSCRIPT

<p>USI 2014</p> <p>Docker : Redistributing DevOps cards,on the way to PaaS</p> <p>16th june, 2014Arnaud MAZINDevOps consultantOcto Technology@ArnaudMazinAdrien BLINDDevOps coach@adrienblind</p> <p>www.usievents.com#USI2014</p> <p>1</p> <p>www.usievents.com#USI2014</p> <p>2</p> <p>www.usievents.com#USI2014</p> <p>3</p> <p>#1 What is Docker?</p> <p>#2 Opportunities leveraged by Docker</p> <p>#3 Take-away</p> <p>www.usievents.com#USI2014</p> <p>4</p> <p>#1 What is Docker?</p> <p>#2 Opportunities leveraged by Docker</p> <p>#3 Take-away</p> <p>www.usievents.com#USI2014</p> <p>5</p> <p> A technology enabling to standardize packaging and deployment operations </p> <p>www.usievents.com#USI2014</p> <p>6</p> <p>#1 What is Docker ?Docker key properties</p> <p>PO DI LI SORTABLESPOSABLEVECIAL</p> <p>www.usievents.com#USI2014</p> <p>7</p> <p>#1 What is Docker ?</p> <p>PO DI LI SORTABLESPOSABLEVECIAL(Almost)</p> <p>www.usievents.com#USI2014</p> <p>8</p> <p>IsolationVirtualisation</p> <p>PORTABLEDILISOVMVMVMHypervisorHardwareApp.MDWApp.MDWApp.MDWKernelKernelKernelOSbaseOSbaseOSbaseKernelHardware or VMContainerApp.OSbaseMDWContainerApp.OSbaseMDWContainerApp.MDWOSbase</p> <p>www.usievents.com#USI2014</p> <p>9</p> <p>PORTABLEDILISO</p> <p>Limited adherence with the subsequent OSOnly a recent Linux kernel is requiredDocker lightweight agent to be installed</p> <p>Few parametrization required</p> <p>DB_IP=1.2.3.4DB_LOGIN=dblogin</p> <p>20KgMax</p> <p>www.usievents.com#USI2014</p> <p>10</p> <p>#1 What is Docker ?</p> <p>PO DI LI SORTABLESPOSABLEVECIAL</p> <p>www.usievents.com#USI2014</p> <p>11</p> <p>Rebuild vs UpgradePODISPOSABLELISOReduce building and deployment costs</p> <p>www.usievents.com#USI2014</p> <p>12</p> <p>PODISPOSABLELISO</p> <p>FROM ubuntu:latestRUN apt-get install -y memcachedEXPOSE 11211CMD ["/usr/bin/memcached"]USER daemon</p> <p>Cattle vs Pet</p> <p>www.usievents.com#USI2014</p> <p>13</p> <p>Using applicative storage servicesAmazon S3, OpenStack SwiftMongoDB, Hadoop, Cassandra, Elastic Search, Amazon RDS...</p> <p>By default, you can leverage on traditional systemContainers dedicated to dataMounting points on the host</p> <p>Extract data from the containerPODISPOSABLELISO</p> <p>www.usievents.com#USI2014</p> <p>14</p> <p>Two major trendsFrequency of application deploymentsCommoditization and consumerization of the infrastructure (Low-cost/SLA)</p> <p>High availability and scalability to be handled by the application better than the infrastructure</p> <p>PODISPOSABLELISOImpacts on application architecture</p> <p>www.usievents.com#USI2014</p> <p>15</p> <p>#1 What is Docker ?</p> <p>PO DI LI SORTABLESPOSABLEVECIAL</p> <p>www.usievents.com#USI2014</p> <p>16</p> <p>Versionned and incremental imagesFile systemConfiguration parameters (ports, processes...)</p> <p> Git style DiffsVersion treesVersion labelling</p> <p>PODILIVESO</p> <p>www.usievents.com#USI2014</p> <p>17</p> <p>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</p> <p>PODILIVESO</p> <p>www.usievents.com#USI2014</p> <p>18</p> <p>#1 What is Docker ?</p> <p>PO DI LI SORTABLESPOSABLEVECIAL</p> <p>www.usievents.com#USI2014</p> <p>19</p> <p>Registries</p> <p>PODILISOCIALDocker HubConsoleRegistryCollaboration toolsAutomated build serviceWebHooksDockerHub APICommunity toolsPublic registriesVote for valuable imagesTrusted imagesOfficial images Continuous build toolingEnterprise, private registries</p> <p>www.usievents.com#USI2014</p> <p>20</p> <p>#1 What is Docker ?Docker technologyCopy on Write storageAUFSDevice MapperBtrfsResources isolationLXCcGroups, namespacesIpTablesDockerEngine APIDocker Engine</p> <p>Major actorsDocker Hub</p> <p>www.usievents.com#USI2014</p> <p>21</p> <p>#1 What is Docker?</p> <p>#2 Opportunities leveraged by Docker</p> <p>#3 Take-away</p> <p>www.usievents.com#USI2014</p> <p>22</p> <p>#1 What is Docker?</p> <p>#2 Opportunities leveraged by Docker</p> <p> #2.1 Docker invented the CaaS</p> <p> #2.2 Docker eases PaaS adoption</p> <p>#3 Take-away</p> <p>www.usievents.com#USI2014</p> <p>23</p> <p>#2.1 Docker invented the CaaSIaaSCapacity (VM, Stockage)PaaSApplication (code)SaaSService</p> <p>www.usievents.com#USI2014</p> <p>24</p> <p>#2.1 Docker invented the CaaSIaaSCapacity (VM, Stockage)PaaSAppli. (code)SaaSServiceCaaSApplicative containers</p> <p>www.usievents.com#USI2014</p> <p>25</p> <p>#2.1 Docker invented the CaaS</p> <p>Apps teamIn the containerIgnore where the container run (dev computer, prod)</p> <p>Knows how to build the container and operate applications</p> <p>You build it, you run it!</p> <p>Infra teamOut of the containerIgnore how the container images are built</p> <p>Knows how to deal with huge amount of containers</p> <p>www.usievents.com#USI2014</p> <p>26</p> <p>Deploy#2.1 Docker invented the CaaS [Apps Side]Continuous integration of Apps</p> <p> Build once,run everywherePublic registry</p> <p>Enterprise registry</p> <p>Dev</p> <p>SCM</p> <p>Soft. factory</p> <p>TESTContainer(s)</p> <p>UATContainer(s)</p> <p>PRODContainer(s)</p> <p>Test</p> <p>www.usievents.com#USI2014</p> <p>27</p> <p>Internal or external offer from the enteprise</p> <p>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</p> <p>www.usievents.com#USI2014</p> <p>28</p> <p>Containerized products</p> <p>From the community registry to a real marketplace ?#2.1 Docker invented the CaaSEmergence of a virtual appliance offer</p> <p>(Source: docker.io)</p> <p>www.usievents.com#USI2014</p> <p>29</p> <p>#1 What is Docker?</p> <p>#2 Opportunities leveraged by Docker</p> <p> #2.1 Docker invented the CaaS</p> <p> #2.2 Docker eases PaaS adoption</p> <p>#3 Take-away</p> <p>www.usievents.com#USI2014</p> <p>30</p> <p>#2.2 Docker eases PaaS adoptionSource code is the real portable content</p> <p>Git</p> <p>PaaS</p> <p>Pilote &amp; push codeDocker may contribute off the hood</p> <p>www.usievents.com#USI2014</p> <p>31</p> <p>#2.2 Docker eases PaaS adoptionSeveral new initiatives leverage on DockerFlynn, Deis, OpenShift</p> <p>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</p> <p>www.usievents.com#USI2014</p> <p>32</p> <p>#1 What is Docker?</p> <p>#2 Opportunities leveraged by Docker</p> <p>#3 Take-away</p> <p>www.usievents.com#USI2014</p> <p>33</p> <p>#3 Take-awayCombine both PaaS &amp; CaaS approachesPaaS</p> <p>Code</p> <p>CaaS</p> <p>Use both models to address all casesImage</p> <p>www.usievents.com#USI2014</p> <p>34</p> <p>#3 Take-away</p> <p>Cloud</p> <p>DevOpsCaaSPaaSContinuous DeliveryArchitectureOrganizationTime to marketQualit</p> <p>Opportunities</p> <p>www.usievents.com#USI2014</p> <p>35</p> <p>Web giants already started to move on</p> <p>Create you own Docker sandbox</p> <p>Contribute to the community</p> <p>#3 Take-awayThe product gets mature, use it!</p> <p>www.usievents.com#USI2014</p> <p>36</p>

Recommended

View more >