POC of how to test your docker image in the build phase. The following testing use cases are included:
- UT for bash scripts included in the image
- Arbitrary test cases using a running container
- Validity of the structure of the docker image (files, environment, metadata)
The orchestration of the containers is done using a Maven plugin: docker-maven-plugin
The following testing frameworks are used:
Docker logs are printed to stdout several times, the logging parameters of logging seems not working
- maven 3.5
- docker
git clone https://github.com/camilocot/testing-docker-image
mvn clean install