Skip to content

pbsladek/jenkins-amazonlinux2-jnlp-slave-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins Amazon Linux JNLP slave base

Docker Stars Docker Pulls Docker Automated build

Description

Based on jenkins/slave/ Dockerfile and jenkins/jnlp-slave/ Dockerfile.

It seeks to maintain a general jenkins slave image that as a number of common utilities pre-installed.

This is a base image for Docker, which includes Java 8 via Amazon Corretto and the Jenkins agent executable (slave.jar). This executable is an instance of the Jenkins Remoting library.

Usage

This image is used as the basis for the Jenkins Amazon Linux 2 JNLP Agent image. In that image, the container is launched externally and attaches to Jenkins.

This image may instead be used to launch an agent using the Launch method of Launch agent via execution of command on the master. Try for example

docker run -i --rm --name agent --init pwbsladek/jenkins-amazonlinux2-jnlp-slave-base java -jar /usr/share/jenkins/slave.jar

after setting Remote root directory to /home/jenkins/agent.

Agent Work Directories

Starting from Remoting 3.8 there is a support of Work directories, which provides logging by default and change the JAR Caching behavior.

Call example:

docker run -i --rm --name agent1 --init -v agent1-workdir:/home/jenkins/agent pwbsladek/jenkins-amazonlinux2-jnlp-slave-base java -jar /usr/share/jenkins/slave.jar -workDir /home/jenkins/agent

About

jenkins amazonlinux jnlp slave

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE-2

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published