-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (31 loc) · 1.35 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM ubuntu:14.04
MAINTAINER rxacevedo@fastmail.com
# This is a modified example from The Docker Book
RUN apt-get update -qq && \
apt-get install -qqy \
apt-transport-https \
curl
RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
RUN echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list
RUN apt-get update -qq && apt-get install -qqy \
ca-certificates \
docker-engine \
git-core \
iptables \
maven \
openjdk-7-jdk
ENV JENKINS_HOME /opt/jenkins/data
ENV JENKINS_MIRROR http://mirrors.jenkins-ci.org
RUN mkdir -p $JENKINS_HOME/plugins
RUN curl -sf -o /opt/jenkins/jenkins.war -L $JENKINS_MIRROR/war-stable/latest/jenkins.war
RUN for plugin in chucknorris greenballs scm-api git-client git ws-cleanup ;\
do curl -sf -o $JENKINS_HOME/plugins/${plugin}.hpi \
-L $JENKINS_MIRROR/plugins/${plugin}/latest/${plugin}.hpi; done
# ADD ./dockerjenkins.sh /usr/local/bin/dockerjenkins.sh
# RUN chmod +x /usr/local/bin/dockerjenkins.sh
# Don't care, using host socket for now
# VOLUME /var/lib/docker
EXPOSE 8080
# This is for setting up cgroups in the container
# ENTRYPOINT [ "/usr/local/bin/dockerjenkins.sh" ]
ENTRYPOINT [ "java", "-jar", "/opt/jenkins/jenkins.war" ]