-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (23 loc) · 930 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
# The FROM will be replaced when building in OpenShift
FROM centos:7
MAINTAINER William Burton <[email protected]>
# Install headless Java
USER root
RUN yum clean all && \
export INSTALL_PKGS="nss_wrapper java-1.8.0-openjdk-headless \
java-1.8.0-openjdk-devel nss_wrapper gettext tar git \
which origin-clients" && \
yum clean all && \
yum -y --setopt=tsflags=nodocs install epel-release centos-release-openshift-origin && \
yum install -y --setopt=tsflags=nodocs install $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all && \
mkdir -p /var/lib/jenkins && \
chown -R 1001:0 /var/lib/jenkins && \
chmod -R g+w /var/lib/jenkins
# Copy the entrypoint
COPY configuration/* /var/lib/jenkins/
USER 1001
# Run the JNLP client by default
# To use swarm client, specify "/var/lib/jenkins/run-swarm-client" as Command
ENTRYPOINT ["/var/lib/jenkins/run-jnlp-client"]