Docker Community Forums

Share and learn in the Docker community.

Using docker-compose.yml as template for jenkins

docker

(Scarlson) #1

I saw this SO question which states there is little to no plan to incorporate some level of docker-compose into jenkins.

I am interested in exploring other options such as using the docker-compose.yml purely as a template for populating fields in the docker plugin under the define a docker template section. Or using it more directly instead of populating plugin fields… but I’m wary of the amount of work it would take.

IMO this is a critical part of infrastructure as code as there is no other way to use bind mounts and nfs mounts and manipulate the docker driver_opts: section and keep it in source.

Is there a reason something this simple has not been done? Is there a reason I shouldn’t be wasting my time with this? I feel like I MUST be missing something…