Giter Site home page Giter Site logo

nthings / jenkins-jnlp-slave Goto Github PK

View Code? Open in Web Editor NEW

This project forked from odavid/jenkins-jnlp-slave

0.0 1.0 0.0 43 KB

A JNLP Slave that enables docker build and fixes volume permissions on startup

License: MIT License

Shell 46.60% Dockerfile 45.66% Makefile 7.74%

jenkins-jnlp-slave's Introduction

Jenkins JNLP Agent Docker image

Build Status Docker Pulls

This image is based on https://github.com/jenkinsci/docker-jnlp-slave image and fixes permissions issues with volumes created by docker. The image also contains docker binary and able to mount /var/run/docker.sock to enable the slave to run docker commands on the slave. The default tag of the image is based on alpine and installs also glibc to enable Oracle JDK installations. (see gliderlabs/docker-alpine#11)

The immage support running docker commands in slave in 2 different modes:

  • By mounting the host's /var/run/docker.sock inside the slave.
    • docker commands are running on the host's docker daemon.
    • Containers and images built by the slave are not cleaned up.
    • Cannot mount volumes from the slave's workspace - i.e hard to use docker-compose
  • By using Docker Inside Docker - requires privileged container and passing DIND=true variable.
    • docker commands are running within the slave's docker daemon.
    • Containers and images built by the slave are cleaned up directly after slave finishes the build.
    • Ability to mount volumes from the slave's workspace - native usage of docker-compose

Environment Variables

Name Description
DIND If true, then the slave will run docker inside docker - Requires privileged container

For other environment variables, see https://github.com/jenkinsci/docker-jnlp-slave

Releases

Docker Images are pushed to Docker Hub

Each release is a git tag v$UPSTREAM_VERSION-$INCREMENT where:

  • UPSRTEAM_VERSION is the docker-jnlp-slave version
  • INCREMENT is a number representing that representing the release contents (i.e docker version, bugs, etc...)

For each git tag, there following tags will be created:

  • $UPSRTEAM_VERSION-$INCREMENT - one to one releationship with git tag
  • $UPSRTEAM_VERSION - latest release for that UPSRTEAM_VERSION version

The following distributions are supported:

  • alpine (also the default)
  • debian
  • jdk11

jenkins-jnlp-slave's People

Contributors

fabianschurig avatar nthings avatar odavid avatar yorammi avatar

Watchers

 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.