Skip to content

pollen-metrology/docker-jenkins-slave

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins Agent Docker image

Getting started

You should create host volumes for workspace and development environment, which are not part of the Docker image. They will be mounted in the Docker container at runtime.

# be careful the arguments order is important
sudo docker build -t jenkins_slave .
sudo docker run  \
        -d \
        -v pollen-dev-env:/home/pollen  \
        -v jenkins_workspace:/home/jenkins/workspace \
        pollen-metrology/linux-jenkins-slave \
        -url [master server url] \
        -workDir=/home/jenkins/agent \
        <agent secret hash> \
        <agent name>

~

Specifications

  • based on Ubuntu 16.04
  • install and start ssh server
  • install java, download slave.jar and connect to jenkins server
  • install python dependencies
  • install g++ compiler and cmake

More

Freely inspired by:

Packages

No packages published

Languages

  • Dockerfile 59.4%
  • Shell 40.6%