Skip to content

Commit

Permalink
removed extraneous filler
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeMagiera committed Oct 13, 2020
1 parent 3495fa4 commit 2eb1470
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,36 +1,15 @@
# experience-sampler-data-collector-builder
#FROM openshift/base-centos7
FROM registry.redhat.io/rhel8/httpd-24

LABEL maintainer="Jaime Magiera <[email protected]>"

# TODO: Rename the builder environment variable to inform users about application you provide them
# ENV BUILDER_VERSION 1.0

# TODO: Set labels used in OpenShift to describe the builder image
LABEL io.k8s.description="Platform for building Experience Sampler Data Collector" \
io.k8s.display-name="builder Experience Sampler Data Collector" \
ENV BUILDER_VERSION 1.0
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,etc."
io.openshift.tags="builder,Experience Sampler, Data Collector"

# TODO: Install required packages here:
#RUN yum install -y httpd && yum clean all -y

# TODO (optional): Copy the builder files into /opt/app-root
COPY ./<builder_folder>/ /opt/app-root/

# TODO: Copy the S2I scripts to /usr/libexec/s2i, since openshift/base-centos7 image
# sets io.openshift.s2i.scripts-url label that way, or update that label
COPY ./s2i/bin/ /usr/libexec/s2i

# TODO: Drop the root user and make the content of /opt/app-root owned by user 1001
RUN chown -R 1001:1001 /opt/app-root

# This default user is created in the openshift/base-centos7 image
USER 1001

# TODO: Set the default port for applications built using this image
# EXPOSE 8080

# TODO: Set the default CMD for the image
CMD ["/usr/libexec/s2i/usage"]

0 comments on commit 2eb1470

Please sign in to comment.