Hi All,
I'm new to Docker, so thought I'd attempt to setup Jenkins with slaves that
are Docker containers. The software we build used gradle as the build tool,
and I've git a few issues. Below is a overview of where I am, however I'm
struggling to progress to the next stage
Current Situation:
Jenkins - Running on a standalone VM (may put into Docker at a later date)
- Docker plugin to start/stop containers for builds
- At the moment build steps are just to echo something into a file
Slaves - Docker images
- Jenkins starts the image does whats needed and then stops the container
- *Issue* - the container is left behind...is there anyway to automate
removal of the containers from within Jenkins?
The next issues I have are:
- How to mount the workspace into the container.
- The issue I'm having here is that we start X slaves, so if I mount
the Jenkins master workspace onto the slave. Each slave will end up
pointing to the same folder on the host trampling all over each other
- Another issue here is, the project uses Gradle so it would be nice
to attempt to reload/retain the gradle wrapper and dependency caches.
- Extract build results (JUnit etc)
- By solving the issue above this could be resolved
So I guess summed up my question is, how should the file system be managed
when using Docker containers as Jenkins Slaves? Any thoughts or how youve
implemented things would be great.
Thanks,
Kris
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/a5b84e7e-7fe3-4518-b70e-8dde861efff8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.