Skip to content

Latest commit

 

History

History
 
 

jenkins-slave-python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

jenkins-slave-python

Provides a docker image of the python runtime for use as a Jenkins slave.

Build local

docker build -t jenkins-slave-python .

Run local

For local running and experimentation run docker run -i -t jenkins-slave-python /bin/bash and have a play once inside the container.

Build in OpenShift

oc process -f ../templates/jenkins-slave-generic-template.yml \
    -p NAME=jenkins-slave-python \
    -p SOURCE_CONTEXT_DIR=jenkins-slaves/jenkins-slave-python \
    -p DOCKERFILE_PATH=Dockerfile \
    | oc create -f -

For all params see the list in the ../templates/jenkins-slave-generic-template.yml or run oc process --parameters -f ../templates/jenkins-slave-generic-template.yml.

Jenkins

Add a new Kubernetes Container template called jenkins-slave-python (if you've build and pushed the container image locally) and specify this as the node when running builds. If you're using the template attached; the role: jenkins-slave is attached and Jenkins should automatically discover the slave for you. Further instructions can be found here. Python installation commands are slightly modified from the SCL versions, which can be found here.