These are the Docker files I used for the screencasts about writing tests for php-src.
Just copy these files into a directory and also create a subdirectory called docker-mount
. This can be accessed from within the container at /usr/src
.
For the first run you'll need to build the container.
$ docker-compose build
The build should install pretty much all the need deps that we ended up installing in the screencasts.
Once it's built, you shouldn't have to run that again. Now you can just run the container and access the TTY with user sammyk. That user has sudo access with password test123.
$ docker-compose up
$ docker exec -it -u sammyk phptscreencast_web_1 bash
I hope this helps some of you! Good luck with your tests! :)
Was having issues building, due to locale-gen not being available. Have updated Dockerfile as below. Also adding lcov so can compile with gcov