-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3495fa4
commit 2eb1470
Showing
1 changed file
with
4 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |