2016-02-22 12:12:04 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for jenkins-arm
|
|
|
|
#
|
|
|
|
|
2016-06-03 10:46:59 +02:00
|
|
|
FROM easypi/alpine-arm:edge
|
2016-05-03 08:05:55 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
2016-02-22 12:12:04 +02:00
|
|
|
|
|
|
|
ENV JENKINS_HOME /var/jenkins_home
|
|
|
|
|
|
|
|
RUN set -xe \
|
2016-05-03 08:05:55 +02:00
|
|
|
&& apk add -U bash \
|
|
|
|
curl \
|
2016-06-03 16:18:12 +02:00
|
|
|
git \
|
2016-05-03 08:10:49 +02:00
|
|
|
openjdk7 \
|
2016-02-22 12:12:04 +02:00
|
|
|
openssh-client \
|
|
|
|
ttf-dejavu \
|
2016-05-03 08:05:55 +02:00
|
|
|
&& addgroup -g 1000 jenkins \
|
|
|
|
&& adduser -h $JENKINS_HOME -u 1000 -G jenkins -s /bin/bash -D jenkins \
|
2016-02-22 12:12:04 +02:00
|
|
|
&& mkdir -p /usr/share/jenkins \
|
|
|
|
&& cd /usr/share/jenkins \
|
|
|
|
&& wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
VOLUME $JENKINS_HOME
|
|
|
|
WORKDIR $JENKINS_HOME
|
|
|
|
|
|
|
|
USER jenkins
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
CMD ["java", "-Djava.awt.headless=true", "-jar", "/usr/share/jenkins/jenkins.war"]
|