@locnh
Based on a true story ...
This slide is for developers who have no live with a nagging pain called "environment preparation" ...
about a nightmare in software industry ...
Nah, actually it's not a horror movie
because, at least, we have docker
"Move your ass or keep enjoying the old shit !!"
Requirements
PHP 5 / NginX
PHP 5 / Apache
PHP 7 / NginX
PHP 7 / Apache
Will have the same working environment
(For the dummies)
Get the docker at https://www.docker.com/
$ docker pull NAME
$ docker run NAME
# curl -sSL https://get.docker.com/ | sh
(For the dummies)
$ docker ps
$ docker stop NAME
$ docker start NAME
(For the dummies)
$ docker pull percona:5.7
$ docker run --name percona57 -p 3306:3306 \ -e MYSQL_ALLOW_EMPTY_PASSWORD=yes \ -d percona:5.7
$ docker ps
$ docker stop percona57
$ docker start percona57
(For the dummies)
$ docker pull locnh/docker-magento:2-dev
$ docker run --name magento21 -p 80:80 \
-v /path/to/magento:/var/www/html \
-d locnh/docker-magento:2-dev
-v host_dir:container_dir
-p host_port:container_port
(For the dummies)
$ docker exec -it magento21 bash [root@magento21 /]#
[root@magento21 /]# id
uid=0(root) gid=0(root) groups=0(root)
[root@magento21 /]# exit
$
(For the dummies)
$ curl http://localhost
$ mysql -h localhost -p 3306 -u root
$ docker commit magento21 username/reponame
$ docker login
$ docker push username/reponame
$ docker images
Content Internet
Media Internet
Deck slides.com
Images storage hub.docker.com
Code storage github.com
Actor Docker Whale
Director /me