Jenkins Installed on Docker Swarm Engine Cluster - How to Handle Slaves?

23 views
Skip to first unread message

Justin Seiser

unread,
Mar 8, 2019, 8:48:55 AM3/8/19
to Jenkins Users
We just spun up a dedicated Docker Swarm environment.  I cant seem to find a clear answer on the best/preferred way to handle slaves in this style environment.

docker-workflow - We use this in AWS, but with the EC2 Plugin, which spins up a AMI that has docker installed/configured. Thats not an option here.  It only appears to semi support the Legacy Standalone swarm, not the actual Swarm Mode.


docker-plugin - States it doesnt support Swarm mode, just legacy Swarm Standalone


docker-swarm - This appears to be what I want, but there is 0 documentation i can find on how to use it in pipelines.  It also isnt clear if this can run any docker container, or if it requires we build containers off of a JNLP enabled container.


There are countless others listed as well.  Some wanting agents installed on the docker servers themselves, which is a no go in this environment.

Im really just looking for how other people are handling this, and if it is the docker-swarm plugin, any link to any documentation on the pipeline syntax.

Thanks,

Liejun Tao

unread,
Mar 8, 2019, 10:01:30 AM3/8/19
to jenkins...@googlegroups.com
As far as I tried last year, there was no support to use a docker swarm cluster to serve as slaves.
The reason is once you start many slaves there is no way to tear down a specific slave (after it's done with its build) in the new swarm mode, per my understanding.
I switched to use kubernetes cluster, and it worked well.


--
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/72970f7f-dd0e-4760-bd00-ad9dfdfbc65e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages