-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
28 lines (24 loc) · 989 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM jpetazzo/dind
MAINTAINER Yasser Nabi "[email protected]"
ENV JENKINS_HOME /jenkins
ENV JENKINS_SWARM_CLIENT_VER 1.15
ENV JENKINS_JAVA_ARGS '-Djava.awt.headless=true'
ENV TZ Europe/London
ENV DEBIAN_FRONTEND noninteractive
EXPOSE 2812 22
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list && \
apt-get update && \
apt-get -y install \
openssh-server \
monit \
curl \
openjdk-7-jre-headless \
git \
subversion
ADD ./monit.d/ /etc/monit/conf.d/
ADD ./jenkins.sudoers /etc/sudoers.d/jenkins
ADD ./jenkins_init_wrapper.sh /jenkins_init_wrapper.sh
ADD ./start.sh /start.sh
RUN mkdir -p ${JENKINS_HOME} && curl -s -L -o $JENKINS_HOME/swarm-client.jar \
http://maven.jenkins-ci.org/content/repositories/releases/org/jenkins-ci/plugins/swarm-client/${JENKINS_SWARM_CLIENT_VER}/swarm-client-${JENKINS_SWARM_CLIENT_VER}-jar-with-dependencies.jar
ENTRYPOINT ["/bin/bash", "/start.sh"]