Skip to content

jmaitrehenry/docker-jenkins-jnlp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins JNLP Agent Docker image

Docker Stars Docker Pulls Docker Automated build

This is an image for Jenkins agent using JNLP to establish connection. It have docker client and docker-compose installed and docker images preloading.

For now, the agent will try to create the agent on jenkins master before connecting. If agent already exists on master, the connection will fail.

Base on Jenkins JNLP Agent Docker image

Running

 docker run -d -v /var/run/docker.sock:/var/run/docker.sock \
   -e JENKINS_URL=$JENKINS_URL \
   -e LABELS=$LABELS \
   -e USER=$USER \
   -e JENKINS_AGENT_NAME=$SLAVE_NAME \
   -e JENKINS_REMOTE_FS=/ci/jenkins \
   -e EXECUTORS=1 \
   -e DOCKER_PRELOAD_IMAGES="alpine nginx" \
   -e JENKINS_KNOWN_HOSTS="github.com ssh-rsa AAAAB3Nza...;bitbucket.org ssh-rsa AAAAB3Nz..." \
   -v /tmp/jenkins:/tmp/jenkins \
   jmaitrehenry/docker-jenkins-jnlp

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages