Jenkins - Docker Integration

I am looking for a better way to integrate Docker into Jenkins to execute build / test commands. The best source I found is a blog post: http://blog.howareyou.com/post/62157486858/continuous-delivery-with-docker-and-jenkins-part-i

He basically suggests wrapping all the execution commands with docker run.

I would like to see better integration with the Jenkins plugin, but I could not find anything in this area. Can anyone suggest a good way to continue? Is there any project to resolve this issue?

thanks

+7
docker continuous-integration jenkins continuous-deployment
source share
3 answers

There is a second blog entry that details the setup. The missing fragment was dockerize , which makes the carefree integration of Jenkins and Docker. If you look at the Ruby application example , there will be a Vagrantfile that will configure everything for you, use this as a starting point for your own customization.

+3
source share

Wouldn't you create a shell script to set up your docker environment, as usual (or better yet, push the docker container into a private repo) and ask Jenkins to pull it out and run the test package inside docker using demonized mode?

Perhaps you could use shared directory folders to display the output of the test so that Jenkins can read and display it?

Hope the point in the right direction ...

+2
source share

This plugin may be what you are looking for.

0
source share

All Articles