-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
35 lines (25 loc) · 839 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
29
30
31
32
33
34
35
FROM jsurf/rpi-raspbian:latest
MAINTAINER Wouter De Schuyter <[email protected]>
# Jenkins version
ENV JENKINS_VERSION 2.64
# Other env variables
ENV JENKINS_HOME /var/jenkins_home
ENV JENKINS_SLAVE_AGENT_PORT 50000
# Enable cross build
RUN ["cross-build-start"]
# Install dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl openjdk-8-jdk \
&& rm -rf /var/lib/apt/lists/*
# Get Jenkins
RUN curl -fL -o /opt/jenkins.war https://repo.jenkins-ci.org/public/org/jenkins-ci/main/jenkins-war/{$JENKINS_VERSION}/jenkins-war-{$JENKINS_VERSION}.war
# Disable cross build
RUN ["cross-build-end"]
# Expose volume
VOLUME ${JENKINS_HOME}
# Working dir
WORKDIR ${JENKINS_HOME}
# Expose ports
EXPOSE 8080 ${JENKINS_SLAVE_AGENT_PORT}
# Start Jenkins
CMD ["sh", "-c", "java -jar /opt/jenkins.war"]