$ ansible-galaxy install -p infrastructure/ansible/galaxy -r infrastructure/ansible/requirements.yml
$ packer build infrastructure/packer/demo_phpcli_dev.json
$ ./develop up -d
This is a shorthand for docker-compose -f infrastructure/docker/docker-compose.yml up -d
$ ./develop exec viscat_phpcli composer install
Edit your /etc/hosts
and add:
0.0.0.0:8080 demo.viscat.local
Open your browser at: http://demo.viscat.local and should see "Hi!"
This container comes with configurated XDebug, but may need some tweeks and config before use it:
If you are using Docker for Mac, it should be all ok, but if you use Linux or Windows, open develop
file and
check XDEBUG_HOST
variable setting. This environment variable should contain the ip address of your host. There's a
command to get it automatically for Linux that works for my laptop.
https://drive.google.com/file/d/16Gc5jR3vA9UJKnUnC5MGf_4dWCJRol2O/view?usp=sharing
You can also enter in a bash console typing:
docker ./develop exec viscat_phpcli bash