I am using official Jenkins image:
https://hub.docker.com/_/jenkins/
I wonder which is the best approach to add native docker-compose to it. For a full continuous integration system I need Jenkins to start Gradle+docker+docker-compose applications but, unlike with Docker plugins, docker-image plugins for Gradle act just as docker-compose frontend, needing it to be native installed. I will then use simple shell scripts in Jenkins to run the docker-compose up commands before the tests.
Note: Docker should be executed in a external Host, obviously, not locally as we are inside a docker already. I wonder if I can avoid installing the full Docker stack in the Jenkins docker image.
Thanks for any ideas
docker-compose与docker-engine处于同一级别-因此要在其上运行docker-images /容器的主机需要docker-engine
,如果要使用docker-compose
来运行它们,则需要在主持人-这是最佳做法
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.