-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (21 loc) · 906 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
# experience-sampler-data-collector-builder
# Pull the RHEL 8 httpd-24 base image
FROM registry.redhat.io/rhel8/httpd-24
# Set the Labels
LABEL maintainer="Jaime Magiera <[email protected]>"
LABEL io.k8s.description="Platform for building the Experience Sampler Data Collector" \
io.k8s.display-name="Builder for Experience Sampler Data Collector" \
io.openshift.expose-services="8080:http" \
io.openshift.tags="builder,Experience Sampler, Data Collector"
# Define the BUILDER_VERSION environmental variable
ENV BUILDER_VERSION 1.0
# Copy the source code
COPY ./<builder_folder>/ /opt/app-root/
# Copy the s2i scripts
COPY ./s2i/bin/ /usr/libexec/s2i
# Set the ownership of the application root
RUN chown -R 1001:1001 /opt/app-root
# Change to the 1001 (This is ignored in OpenShift)
USER 1001
# Output the usage script to finish the builder build
CMD ["/usr/libexec/s2i/usage"]