Continuous integration and deployment with docker
-
Upload
pebble-code -
Category
Software
-
view
273 -
download
4
Transcript of Continuous integration and deployment with docker
![Page 1: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/1.jpg)
Continuous Integration and Deployment
![Page 2: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/2.jpg)
Ship it! Editing files on serverFTPCapistranogit push
![Page 3: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/3.jpg)
Dev to deployment pipeline HackRun local testsgit pushCI server runs testsDeploy
![Page 4: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/4.jpg)
Oops.. 500 Server Error
![Page 5: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/5.jpg)
Not my problem.
![Page 6: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/6.jpg)
UNIX is case sensitive, OSX is notDifferent versions of packagesDifferent versions of runtimesPermissions problemsNetwork problems
Simple things can go wrong
![Page 7: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/7.jpg)
Containers
![Page 8: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/8.jpg)
Linux Containers (LXC)Shares Kernel on Host Machinevia cgroups can limit CPU, memory, block I/O, network
Fast to boot
![Page 9: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/9.jpg)
Using LXC
![Page 10: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/10.jpg)
Hello Dockerdocker run -d -p 80:80 tutum/wordpress
![Page 11: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/11.jpg)
Docker love-inAmazonDigital OceanRackspaceLinodeMicrosoft
![Page 12: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/12.jpg)
Run anywhereLess vendor lock-inDrives competitionStrong consistencyTrue DevOps
![Page 13: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/13.jpg)
Docker use casesTesting (SOA, microservices)Short lived computation environmentsLong lived application environmentsSoftware experimentation (Docker Hub)
![Page 14: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/14.jpg)
Deployment pipelinegit pushCI Server builds docker imageRun tests inside docker imageCI Server pushes to private Docker HubCI Server notifies Elastic BeanstalkElastic Beanstalk pulls new image and runs it
![Page 15: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/15.jpg)
Everyone is happy
![Page 16: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/16.jpg)
UNIX BeardEnvironment consistencySecurityCan create base imagesControl via Dockerfile
![Page 17: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/17.jpg)
Hipster Developergit push deploymentI AM DEVOPSRemoves environment hellCan focus on code
![Page 18: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/18.jpg)
ClientAWESOME!I have a meeting now.
![Page 19: Continuous integration and deployment with docker](https://reader036.fdocuments.net/reader036/viewer/2022062310/588284d91a28ab24788b7429/html5/thumbnails/19.jpg)
Thanks!