Question about the docker-pipeline plugin

39 views
Skip to first unread message

guob...@etu.univ-nantes.fr

unread,
Mar 15, 2016, 11:58:37 AM3/15/16
to Jenkins Developers
Hello, everyone!

I'm working on the subject about the "Integration of Docker plugins with Jenkins 2.0 features". I have learned that the Docker-Pipeline Plugin can run the pipeline steps inside the containers by using Jenkins Slave, but i'm wondering the interest of running the pipeline steps by depending on the Docker CLI instead of the Jenkins Slave remoting in the images?

Thanks,
Guobao

nicolas de loof

unread,
Mar 15, 2016, 1:10:24 PM3/15/16
to jenkin...@googlegroups.com
docker-pipeline does rely on docker-exec to enter a container an run commands inside it, so the jenkins slave remoting still applies to the hosting node. 
this was inspired by Docker Custom Build Environment Plugin (aka Oki Docki plugin)

Main benefit is you can run arbitrary docker image, you don't need one created to host a jenkins slave. Typically, you can use an image you use on your own developer workstation to reproduce a specific build environment.

But this setup also has some limitations, one of them being you need a local docker daemon on jenkins slave, as it relies on bind mounting project workspace



--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/486afcb3-7a38-45e9-823b-74710dd6e041%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

guob...@etu.univ-nantes.fr

unread,
Mar 16, 2016, 9:38:35 AM3/16/16
to Jenkins Developers
I got it. Therefore, does it mean that I can integrate the notion of "pipeline as code" with the base of the Docker Custom Build Environment Plugin, so that we can run the pipeline steps in the container by using plein Docker CLI?

nicolas de loof

unread,
Mar 16, 2016, 9:41:31 AM3/16/16
to jenkin...@googlegroups.com
Using Docker Custom Build Environment Plugin approach with Pipeline is already implemented as docker-pipeline plugin.
What we'd like to investigate during GSoC is to get further, considering limitations of the existing approach, and a docker-centric way to manage build elasticity and customization.

Reply all
Reply to author
Forward
0 new messages