Goal of repository is to provide convenient source for getting config for devenv by author and, maybe, people who find it useful.
there's both instructions in bibucket-pipelines.yml and hub.docker.com autobuilds can be used for that
to launch phpunit tests in hub.docker.com autobuilds define env var RUN_TESTS in autobuilds config.
Note that migrations part commented and you may need to uncomment/create own in both solutions
docker should be installed to run commands below
db name: app
test db name: app_test
user: app
password: pass
to xdebug expect port 9001
in dev env container nginx and fpm workers works under app:app user that is 1000:1000 corresponding to default ubuntu user UID:GID, so no right issues expected. familiarize with Dockerfile precisely to understand how it work so
docker build -t app .
docker run -d -p80:80 --add-host=host.docker.internal:host-gateway --name app -v ${PWD}:/var/www/html -v ${HOME}/.ssh:/home/app/.ssh app
docker start app
with xdebug
docker exec -u${UID} -it -w /var/www/html app /bin/bash
without xdebug
docker exec -u${UID} -it -w /var/www/html -e XDEBUG_MODE=off app /bin/bash