-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (25 loc) · 1.17 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
#*******************************************************************************
# Copyright (c) 2020 Eclipse Foundation and others.
# This program and the accompanying materials are made available
# under the terms of the Eclipse Public License 2.0
# which is available at http://www.eclipse.org/legal/epl-v20.html,
# or the MIT License which is available at https://opensource.org/licenses/MIT.
# SPDX-License-Identifier: EPL-2.0 OR MIT
#*******************************************************************************
FROM %(docker_from)s
# These environment variables will be used in the uid_entrypoint script from the parent image
ENV USER_NAME="%(username)s"
ENV HOME="%(home)s"
# jenkins version being bundled in this docker image
ENV JENKINS_HOME="%(home)s"
ENV JENKINS_WAR="%(war)s"
ENV COPY_REFERENCE_FILE_LOG="%(home)s/copy_reference_file.log"
ENV REF="%(ref)s"
VOLUME [ "%(home)s", "%(webroot)s", "%(pluginroot)s" ]
WORKDIR "%(home)s"
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/usr/local/bin/jenkins.sh"]
RUN mkdir -p $(dirname "%(war)s") && mkdir -p "%(ref)s"
COPY scripts/* /usr/local/bin/
RUN chmod ug+x /usr/local/bin/*
COPY war/jenkins.war "%(war)s"
COPY ref/ "%(ref)s/"