forked from jenkinsci/jenkinsfile-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-dev
18 lines (15 loc) · 918 Bytes
/
Dockerfile-dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Build the docker image using the local build in developer box
# To avoid downloading everything from the internet and using developer's cache
FROM openjdk:8-jdk
ENV JENKINS_UC https://updates.jenkins.io
USER root
RUN mkdir -p /app /usr/share/jenkins/ref/plugins
COPY app/target/appassembler /app
COPY vanilla-package/target/war/jenkins.war /usr/share/jenkins/jenkins.war
RUN unzip /usr/share/jenkins/jenkins.war -d /app/jenkins && \
rm -rf /app/jenkins/scripts /app/jenkins/jsbundles /app/jenkins/css /app/jenkins/images /app/jenkins/help /app/jenkins/WEB-INF/detached-plugins /app/jenkins/winstone.jar /app/jenkins/WEB-INF/jenkins-cli.jar /app/jenkins/WEB-INF/lib/jna-4.5.2.jar
COPY vanilla-package/target/plugins /usr/share/jenkins/ref/plugins
ENTRYPOINT ["/app/bin/jenkinsfile-runner", \
"-w", "/app/jenkins",\
"-p", "/usr/share/jenkins/ref/plugins",\
"-f", "/workspace"]