GitHunt
PI

piotrplenik/jnlp-slave-serverless

Serverless Jenkins JNLP Agent Docker image

Serverless Jenkins JNLP Agent Docker image

Docker Stars
Docker Automated build

This is an image for testing Serverless framework for Jenkins agent (FKA "slave") using JNLP to establish connection.
This agent is powered by the Jenkins Remoting library, which version is being taken from the base Docker Agent image.

Running

To run a Docker container

docker run pplenik/jnlp-slave-serverless -url http://jenkins-server:port <secret> <agent name>

To run a Docker container with Work Directory:

docker run pplenik/jnlp-slave-serverless -url http://jenkins-server:port -workDir=/home/jenkins/agent <secret> <agent name>

Optional environment variables:

  • JENKINS_URL: url for the Jenkins server, can be used as a replacement to -url option, or to set alternate jenkins URL
  • JENKINS_TUNNEL: (HOST:PORT) connect to this agent host and port instead of Jenkins server, assuming this one do route TCP traffic to Jenkins master. Useful when when Jenkins runs behind a load balancer, reverse proxy, etc.
  • JENKINS_SECRET: agent secret, if not set as an argument
  • JENKINS_AGENT_NAME: agent name, if not set as an argument
  • JENKINS_AGENT_WORKDIR: agent work directory, if not set by optional parameter -workDir

Languages

Shell100.0%

Contributors

Created February 13, 2018
Updated September 5, 2021
piotrplenik/jnlp-slave-serverless | GitHunt