Skip to content

Development with Docker

yooper edited this page Feb 16, 2018 · 1 revision

Builds the containers and runs the unit tests

docker build -t text_analysis -f Dockerfile70 .
docker build -t text_analysis -f Dockerfile71 .
docker build -t text_analysis -f Dockerfile72 .

Developing Code

# download the code for the container and set it up
docker build -t text_analysis -f Dockerfile72 .
# log in with bash to debug issues
docker run -it --entrypoint /bin/bash --rm --name run-app text_analysis

While logged into the container you can run the unit tests manually

cd /app
SKIP_TEST=1 ./vendor/bin/phpunit -d memory_limit=1G