How sangharshcs/deploy-jenkins works
deploy-jenkins packages a Jenkins controller and elastic worker pool for Docker Swarm. The main workflow is operator configuration → deployment and secret setup → Swarm services → workers discover the controller, download its matching Swarm client, and register as build nodes. Scaling worker replicas changes cluster capacity without manual node setup. The graph follows README-documented relationships; no source excerpts were provided, so implementation details beyond those statements are omitted.
Main entry points: start.sh Worker startup · stack.yml Jenkins controller · deploy.sh Deploy script · plugins.txt Swarm plugin
Components 15
Deployment
- Environment config
.env.example - Deploy script
scripts/deploy.sh - Stack services
stack.yml - Docker Swarm
- Stop script
scripts/stop.sh
Controller
- Controller image
controller/Dockerfile - Jenkins controller
stack.yml - Security bootstrap
controller/security.groovy - Swarm plugin
controller/plugins.txt
Workers
- Worker image
worker/Dockerfile - Worker startup
worker/start.sh - Worker replicas
stack.yml - Registered build nodes
Credentials
- Docker secrets
stack.yml
Other components
- Operator
Connections 18
- Operator → Environment config: sets values
README.md - Operator → Deploy script: runs deploy
README.md - Deploy script → Stack services: deploys stack
README.md - Deploy script → Docker secrets: creates secrets
README.md - Stack services → Docker Swarm: declares services
README.md - Docker Swarm → Jenkins controller: runs service
README.md - Docker Swarm → Worker replicas: scales service
README.md - Controller image → Jenkins controller: provides image
README.md - Security bootstrap → Jenkins controller: bootstraps security
README.md - Swarm plugin → Jenkins controller: installs plugin
README.md - Worker image → Worker replicas: provides image
README.md - Worker replicas → Worker startup: starts entrypoint
README.md - Worker startup → Jenkins controller: downloads client
README.md - Worker startup → Docker secrets: reads credentials
README.md - Worker startup → Swarm plugin: connects through
README.md - Worker startup → Registered build nodes: registers node
README.md - Operator → Worker replicas: scales workers
README.md - Operator → Stop script: tears down
README.md