All Projects → jenkinsci → Docker Agent

jenkinsci / Docker Agent

Licence: mit
Base Docker image for Jenkins Agents

Projects that are alternatives of or similar to Docker Agent

Docker Inbound Agent
Docker image for a Jenkins agent which can connect to Jenkins using TCP or Websocket protocols
Stars: ✭ 342 (+119.23%)
Mutual labels:  hacktoberfest, agent, jenkins
Docker
Docker official jenkins repo
Stars: ✭ 4,855 (+3012.18%)
Mutual labels:  hacktoberfest, jenkins
Jenkins
Development repository for the jenkins cookbook
Stars: ✭ 416 (+166.67%)
Mutual labels:  hacktoberfest, jenkins
Err Jenkins
errbot plugin for Jenkins
Stars: ✭ 18 (-88.46%)
Mutual labels:  hacktoberfest, jenkins
Node Build Monitor
A Build Monitor written in Node.js, which supports several build services and can be easily extended.
Stars: ✭ 336 (+115.38%)
Mutual labels:  hacktoberfest, jenkins
Devops Guide
DevOps Guide - Development to Production all configurations with basic notes to debug efficiently.
Stars: ✭ 4,119 (+2540.38%)
Mutual labels:  hacktoberfest, jenkins
Jenkinsfile Runner
A command line tool to run Jenkinsfile as a function
Stars: ✭ 727 (+366.03%)
Mutual labels:  hacktoberfest, jenkins
Configuration As Code Plugin
Jenkins Configuration as Code Plugin
Stars: ✭ 2,253 (+1344.23%)
Mutual labels:  hacktoberfest, jenkins
Custom War Packager
Custom Jenkins WAR packager for Jenkins
Stars: ✭ 77 (-50.64%)
Mutual labels:  hacktoberfest, jenkins
Zebrunner
Zebrunner is a Test Automation Management Tool
Stars: ✭ 131 (-16.03%)
Mutual labels:  hacktoberfest, jenkins
Remoting
Jenkins Remoting module
Stars: ✭ 132 (-15.38%)
Mutual labels:  hacktoberfest, jenkins
Jenkins
Jenkins automation server
Stars: ✭ 18,225 (+11582.69%)
Mutual labels:  hacktoberfest, jenkins
Jenkins Cli
Jenkins CLI allows you manage your Jenkins as an easy way
Stars: ✭ 245 (+57.05%)
Mutual labels:  hacktoberfest, jenkins
Orcid Source
ORCID Open Source Project
Stars: ✭ 233 (+49.36%)
Mutual labels:  hacktoberfest, jenkins
Demo Jenkins Config As Code
Demo of Jenkins Configuration-As-Code with Docker and Groovy Hook Scripts
Stars: ✭ 143 (-8.33%)
Mutual labels:  hacktoberfest, jenkins
Do Agent
Collects system metrics from DigitalOcean Droplets
Stars: ✭ 552 (+253.85%)
Mutual labels:  hacktoberfest, agent
Jenkins.io
A static site for the Jenkins automation server
Stars: ✭ 165 (+5.77%)
Mutual labels:  hacktoberfest, jenkins
Localization Zh Cn Plugin
Chinese Localization for Jenkins
Stars: ✭ 65 (-58.33%)
Mutual labels:  hacktoberfest, jenkins
Plugin Installation Manager Tool
Plugin Manager CLI tool for Jenkins
Stars: ✭ 138 (-11.54%)
Mutual labels:  hacktoberfest, jenkins
Helm Charts
Jenkins community Helm charts
Stars: ✭ 154 (-1.28%)
Mutual labels:  hacktoberfest, jenkins

Jenkins Agent Docker image

Join the chat at https://gitter.im/jenkinsci/docker GitHub stars Docker Pulls GitHub release

This is a base image for Docker, which includes JDK and the Jenkins agent executable (agent.jar). This executable is an instance of the Jenkins Remoting library. JDK version depends on the image and the platform, see the Configurations section below.

❗️ Warning! This image used to be published as jenkinsci/slave and jenkins/slave. These images are now deprecated, use jenkins/agent.

Changelog

See GitHub releases for versions 3.35-1 and above. There is no changelog for previous versions, see the commit history.

Jenkins remoting changelogs are available here.

Usage

This image is used as the basis for the Docker Inbound 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. For example on Linux you can try

docker run -i --rm --name agent --init jenkins/agent java -jar /usr/share/jenkins/agent.jar

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

or if using Windows Containers

docker run -i --rm --name agent --init jenkins/agent:jdk8-windowsservercore-1809 java -jar C:/ProgramData/Jenkins/agent.jar

after setting Remote root directory to C:\Users\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 for Linux:

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

Call example for Windows Containers:

docker run -i --rm --name agent1 --init -v agent1-workdir:C:/Users/jenkins/Work jenkins/agent java -jar C:/ProgramData/Jenkins/agent.jar -workDir C:/Users/jenkins/Work

Configurations

The image has several supported configurations, which can be accessed via the following tags:

  • latest: Latest version with the newest remoting (based on openjdk:8-jdk-buster)
  • latest-stretch: Latest version with the newest remoting (based on openjdk:8-jdk-stretch)
  • latest-jdk11: Latest version with the newest remoting and Java 11 (based on openjdk:11-jdk-buster)
  • alpine: Small image based on Alpine Linux (based on adoptopenjdk/openjdk8:jdk8u${version}-alpine)
  • jdk8-windowsservercore-1809: Latest version with the newest remoting (based on adoptopenjdk:8-jdk-hotspot-windowsservercore-1809)
  • jdk11-windowsservercore-1809: Latest version with the newest remoting and Java 11 (based on adoptopenjdk:11-jdk-hotspot-windowsservercore-1809)
  • jdk8-nanoserver-1809: Latest version with the newest remoting with Windows Nano Server
  • jdk11-nanoserver-1809: Latest version with the newest remoting with Windows Nano Server and Java 11

There are also versioned tags in DockerHub, and they are recommended for production use. See the full list here

Java 11 Support

Java 11 support is available for Debian-based images and Windows images. Alpine image for Java 11 will not be provided, see JENKINS-54487. There is a probability that images for Java 11 will be changed to AdoptOpenJDK base images in the future.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].