Public Repository

Last pushed: a year ago
Short Description
It’s a container running jenkins docker build executor on Rackspace Carina.
Full Description

Tag: Description

1.0: Extended from official jenkins, with docker.io installed. Put docker authorization directory in the volume, then images could be build on remote docker host.
2.0: Add JNLP connection with master. Use static slave name 'slave1' and static master IP. To be improved.

Dockerfile:

It’s a container running jenkins docker build
executor on Rackspace Carina.
Authorization directory should be put in path:
$JENKINS_HOME/docker_cert/carina_deployment/docker.env

FROM jenkins:latest

USER root

RUN wget http://ftp.de.debian.org/debian/pool/main/a/apt/apt-transport-https_1.0.9.8.2_amd64.deb \
&& dpkg -i apt-transport-https_1.0.9.8.2_amd64.deb \
&& apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

COPY docker.list /etc/apt/sources.list.d/docker.list

RUN apt-get update \
&& apt-cache policy docker.io \
&& apt-get -y install docker.io

RUN gpasswd -a jenkins docker

USER jenkins

COPY jenkins.sh /usr/local/bin/jenkins.sh

ENTRYPOINT ["/bin/tini", "--", "/usr/local/bin/jenkins.sh"]

Docker Pull Command
Owner
shiying

Comments (0)