JanBurklSolutionConsultantZend,[email protected]//@[email protected]
Developer'sDream
https://www.justwatch.com/de/Film/Der-Flug-des-Navigators
1.GetCode2.GetDependencies3.StarttheEngines
FastForward
ZendExpressive(+alittleJS)
Whathashappened?
http://www.gamona.de/kino-dvd/deadpool-2,autoren-auch-das-sequel-benoetigt-kein-hohes-budget:news.html
particulum-mobile
https://bitbucket.org/account/user/janatzendteam/projects/PAR
Myexampleproject
WhatdoIneed?
Docker≠VirtualBox
OneDaemon=
OneContainer
"Inalmostallcases,youshouldonlyrunasingleprocessinasinglecontainer.Decouplingapplicationsintomultiplecontainersmakesitmucheasiertoscalehorizontallyandreusecontainers."
https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
DockerCompose
"Composeisatoolfordefiningandrunningmulti-containerDockerapplications."
Challenge
http://www.foxmovies.com/movies/kingsman-the-secret-service
dockerrun-d-i-t-p80:80-p\3000:3000-p3001:3001-p\2222:22--namegsdalankent/gsd
dockerrun-it--rm--namemy-running-script\-v"$PWD":/usr/src/myapp\-w/usr/src/myappphp:7.0-cli\phpyour-script.php
AndyWeir,TheMartian
Ducttapeworksanywhere.Ducttapeismagicandshouldbeworshipped.
http://the-martian-movie.tumblr.com/post/128648842093/duct-tape-here-duct-tape-there-engineering-on
docker-compose.ymldocker-compose-setup.yml
(.env)
https://bitbucket.org/janatzendteam/particulum-mobile-master/src/masterbitbu/docker-compose.yml
docker-compose:helpsmedefining(dev)infrastructure
Makefile
https://bitbucket.org/janatzendteam/particulum-mobile-master/src/master/Makefile
http://90to5.org/5MM/2015/ferris-buellers-day-off-1986/
make:helpsmecontrollingtheinfrastructure
ImportantCommands:makestartmakeupmakedownmakecleanmakebuild-dev
DockerImage-(pullor)build
http://www.theatlantic.com/technology/archive/2013/10/how-realistic-is-the-movie-em-gravity-em/280211/
DockerHubPrivateDockerRepositoryLocalDockerfileRemoteDockerfile
FAIL
MissingBestPracticesDockerUpdatesDockerComposeUpdatesPermissionsPersistentData
Permissions?What'stheproblem?webserverwritesfileswriteaccessforwww-datawww-datanotavailableonhostuseuidandgidoflocaluser(#)
Databaseor
WheretostoremypersistentData?
Volumesmaplocaldirto/var/lib/mysql
mysql:image:mysql:5.6volumes:#mda=mysql_data_archive-./mda:/mdaenvironment:MYSQL_PASS:admincommand:bash-c"cd/\&&tarxvf/mda/backup.tar\&&/run.sh"
Benefits
nohugefilestohandleexchangeimageseverystepisdocumentednolessnetworingissues
Dankeschö[email protected]
@5square_de
https://bitbucket.org/account/user/janatzendteam/projects/PARhttp://5square.de/talks/