Sign inSign up

toschneck/jenkins-slave-jnlp

By toschneck

•Updated over 8 years ago

Jenkins JNLP Slave based Ubuntu, for the Jenkins Swarm Plugin

Image
1

1.3K

toschneck/jenkins-slave-jnlp repository overview

⁠Notes for build up docker-based Jenkins environment

scalable containerized jenkins

⁠Build / Start / Shutdown

⁠automatic environment deployment
./update_envrionment.sh 

The automatic environment deploy script will do the following steps:

  1. adds all modified files to git and commits it
  2. pulls all changes from repo
  3. rebuild all containers
  4. stop and remove all running containers
  5. start the new containers
  6. push the changes to the git repo
⁠manual environment deployment

build and start the jenkinse master and slave container

docker-compose build
docker-compose up

e.g. scale our amount on slave to 4:

docker-compose scale jenkinsslave=4

(use for updates) shutdown and remove all started jenkins containers

docker-compose down

⁠Server / Nodes

  • Jenkins Build Server: localhost⁠
    • The admin user have the following credentials: admin / admin

⁠git clone

Use as template the following github repo:

git clone [email protected]:toschneck/containerized-jenkins.git

⁠Docker Images

You will find the ready to use image for the Jenkins slave on Docerhub:

⁠Clean up temporary data

(optional) remove all temporary data as logs and so on

./rm_temp_conf_files.sh 


⁠FOR PRODUCTION

ATTENTION: make sure to change the default node password keys under:

Tag summary

Content type

Image

Digest

Size

458.8 MB

Last updated

over 8 years ago

docker pull toschneck/jenkins-slave-jnlp