I have configured CI pipeline with Jenkins for app stored in git and deployed with docker-compose. The jenkins agent used is a docker container which can run other containers including the docker-compose deployment.
To resume the jenkins CI:
How tests works:
Problems:
Questions:
I want to know what is the best practices for CI when you want to run tests after a push on different branches in a git project.
Use docker in docker and run your docker-compose inside a dockerd running in your custom docker-container spawned for the specific CI.
https://www.jenkins.io/doc/book/pipeline/docker/
https://docs.gitlab.com/ee/ci/docker/using_docker_build.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.