GithubHelp home page GithubHelp logo

pli2-intel / docker-agent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jenkinsci/docker-agent

0.0 0.0 0.0 327 KB

Base Docker image for Jenkins Agents

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

License: MIT License

Dockerfile 58.14% Shell 8.62% PowerShell 24.67% Makefile 3.92% HCL 4.64%

docker-agent's Introduction

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:jdk11-windowsservercore-ltsc2019 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:jdk11-windowsservercore-ltsc2019 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:

  • Linux Images:

    • latest (jdk11, bullseye-jdk11, latest-bullseye-jdk11, latest-jdk11): Latest version with the newest remoting and Java 11 (based on debian:bullseye-${builddate})
    • latest-jdk8 (jdk8, bullseye-jdk8, latest-bullseye-jdk8): Latest version with the newest remoting (based on debian:bullseye-${builddate})
    • alpine (alpine-jdk11, latest-alpine, latest-alpine-jdk11): Small image based on Alpine Linux (based on alpine:${version})
    • alpine-jdk8 (latest-alpine-jdk8): Small image based on Alpine Linux (based on alpine:${version})
    • archlinux (latest-archlinux, archlinux-jdk11, latest-archlinux-jdk11): Image based on Arch Linux with JDK11 (based on archlinux:latest)
    • bullseye-jdk17-preview (jdk17-preview, latest-bullseye-jdk17-preview, latest-jdk17-preview): Preview JDK17 version with the newest remoting (based on debian:bullseye-${builddate})
  • Windows Images:

    • jdk8-windowsservercore-1809: Latest version with the newest remoting and Java 8 (based on eclipse-temurin:8.xxx-jdk-windowsservercore-1809)
    • jdk8-nanoserver-1809: Latest version with the newest remoting with Windows Nano Server and Java 8 (based on eclipse-temurin:8.xxx-jdk-nanoserver-1809)
    • jdk11-windowsservercore-1809: Latest version with the newest remoting and Java 11 (based on eclipse-temurin:11.xxx-jdk-windowsservercore-1809)
    • jdk11-nanoserver-1809: Latest version with the newest remoting with Windows Nano Server and Java 11 (based on eclipse-temurin:11.xxx-jdk-nanoserver-1809)
    • jdk17-windowsservercore-1809: Latest version with the newest remoting and Java 17 (based on eclipse-temurin:17.xxx-jdk-windowsservercore-1809)
    • jdk17-nanoserver-1809: Latest version with the newest remoting with Windows Nano Server and Java 17 (based on eclipse-temurin:17.xxx-jdk-nanoserver-1809)

The file docker-bake.hcl defines all the configuration for Linux images and their associated tags.

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

docker-agent's People

Contributors

agentgonzo avatar alxsap avatar batmat avatar carlossg avatar dependabot[bot] avatar emailbob avatar garethjevans avatar jeffret-b avatar jetersen avatar jglick avatar krichter722 avatar markewaite avatar mkaring avatar ndeloof avatar olblak avatar oleg-nenashev avatar robvadai avatar rtonde-nv avatar sebok avatar slide avatar sorend avatar stopalopa avatar timja avatar timrots avatar tjanson avatar tobix avatar username-is-too-long avatar v1v avatar vebis avatar vlatombe 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.