- Fix TravisCI pipeline, which isn't working as expected because:
- Docker-compose exec always return exit code 0, not an error code of the command
- Sometimes tests start before PostgreSQL server is started
- Confiure VirtualBox to have access to the volume folder
- Set env variable
TESTDRIVEN_ROOT_FOLDER
(only for Windows), it will be used in docker-compose-dev.yml. For more info, check this. - Refer to it from docker-compose "volumes" or from docker run "-v" option
- Refer just by the name you gave it in the settings (Shared Folders) of VirtualBox
- Set env variable
- SSH into docker machine as root
- Other possibly useful Docker commands
- Use git-bash with "winpty" to run interactive docker session:
winpty docker exec -it
- Exclude second volume ('/usr/src/app/node_modules') from
docker-compose-dev.yml
to make things work.
It is a workaround. Normally it should work. Butnpm install
is not installingfork-ts-checker-webpack-plugin
in the Docker container.
docker exec
in git-bash on Windows- Use
CMD tail -f /dev/null
in the Dockerfile to be able to run the container indefinitely.