GithubHelp home page GithubHelp logo

serbixote / docker-slave Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jenkinsci/docker-agent

0.0 1.0 0.0 52 KB

Base Docker image for Jenkins Agents

Home Page: https://hub.docker.com/r/jenkins/slave/

Dockerfile 100.00%

docker-slave's Introduction

Jenkins Agent Docker image

Docker Stars Docker Pulls Docker Automated build

This is a base image for Docker, which includes OpenJDK 8 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 Docker 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 jenkins/slave 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 jenkins/slave java -jar /usr/share/jenkins/slave.jar -workDir /home/jenkins/agent

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)
  • latest-jdk11: Latest version with the newest remoting and Java 11 (based on openjdk:11-jdk)
  • alpine: Small image based on Alpine Linux (based on openjdk:8-jdk-alpine)
  • 2.62: This version bundles Remoting 2.x, which is compatible with Jenkins servers running on Java 6 (1.609.4 and below)
  • 2.62-alpine: Small image with Remoting 2.x
  • 2.62-jdk11: Versioned image for Java 11

Java 11 Support

Java 11 support is available in a preview mode. Only Debian-based images are provided right now. (see JENKINS-54487). There is a probability that images for Java 11 will be changed to AdoptOpenJDK before the final release of Java 11 support in Jenkins.

docker-slave's People

Contributors

oleg-nenashev avatar carlossg avatar ndeloof avatar jglick avatar emailbob avatar jkiddo avatar robvadai avatar vebis avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.