There are 3 ways I know of that allows you to avoid having the Jenkins slave dependency in the container:
1. Use Docker Slaves Plugin
- Has some limitations, but works for the most part. Supports
pipeline at least partially, and can run on dockerized slaves.
Will not run directly on existing slaves but will provision on the
fly from docker. Only supports one docker host and a single global
limit on number of containers.
2. Use Cloudbees Docker Custom build environment plugin
- A bit old codebase, that does not support newer docker
features. Does not support running as a sibling container to a
jenkins slave container. No pipeline support. Uses existing slaves
that must have docker support, so multiple docker hosts are
possible. Someone requested to adopt this plugin some time ago, so
this can change over time.
3. Use the Docker Pipeline plugin, specifically the .inside syntax
- This only supports pipeline, nothing else. Very mature and
is the new way to do this. Uses existing slaves that must have
docker support, so multiple docker hosts are possible. Supports
running as a sibling container to a Jenkins slave container (with
docker socket bind mounted).
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/34b309e6-2bd6-4c57-9e5a-5b3696f247d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
1. Use Docker Slaves Plugin
2. Use Cloudbees Docker Custom build environment plugin3. Use the Docker Pipeline plugin, specifically the .inside syntax
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.
Yes. Docker plugin isn't able to separate the build environment from the Jenkins slave though. The images used are more traditional slaves with the jenkins slave daemon running inside the same container, which means that the jenkins slave dependencies must be mixed with the build environment. The one property shared with the 3 first solutions is that they only need the build environments themselves, as the slave daemon runs outside this container.
/Jacob
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/191ddd71-5f8f-aab7-dc3c-5bd5f10815d5%40opentext.com.