@@ -8,23 +8,24 @@ FROM ubi8/s2i-core:1
88# Environment:
99# * $HTTPD_LOG_TO_VOLUME (optional) - When set, httpd will log into /var/log/httpd24
1010
11- ENV HTTPD_VERSION=2.4
12-
13- ENV SUMMARY="Platform for running Apache httpd $HTTPD_VERSION or building httpd-based application" \
14- DESCRIPTION="Apache httpd $HTTPD_VERSION available as container, is a powerful, efficient, \
11+ ENV HTTPD_VERSION=2.4 \
12+ HTTPD_SHORT_VERSION=24 \
13+ NAME=httpd
14+ ENV SUMMARY="Platform for running Apache httpd ${HTTPD_VERSION} or building httpd-based application" \
15+ DESCRIPTION="Apache httpd ${HTTPD_VERSION} available as container, is a powerful, efficient, \
1516and extensible web server. Apache supports a variety of features, many implemented as compiled modules \
1617which extend the core functionality. \
1718These can range from server-side programming language support to authentication schemes. \
1819Virtual hosting allows one Apache installation to serve many different Web sites."
1920
20- LABEL summary="$SUMMARY" \
21- description="$DESCRIPTION" \
22- io.k8s.description="$DESCRIPTION" \
23- io.k8s.display-name="Apache httpd $HTTPD_VERSION" \
21+ LABEL summary="${ SUMMARY} " \
22+ description="${ DESCRIPTION} " \
23+ io.k8s.description="${ DESCRIPTION} " \
24+ io.k8s.display-name="Apache httpd ${ HTTPD_VERSION} " \
2425 io.openshift.expose-services="8080:http,8443:https" \
25- io.openshift.tags="builder,httpd,httpd-24 " \
26+ io.openshift.tags="builder,${NAME},${NAME}-${HTTPD_SHORT_VERSION} " \
2627 name="rhel8/httpd-24" \
27- version="1 " \
28+ version="${HTTPD_VERSION} " \
2829 com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" \
2930 com.redhat.component="httpd-24-container" \
3031 usage="s2i build https://github.com/sclorg/httpd-container.git --context-dir=examples/sample-test-app/ rhel8/httpd-24 sample-server" \
@@ -34,10 +35,10 @@ EXPOSE 8080
3435EXPOSE 8443
3536
3637RUN yum -y module enable httpd:$HTTPD_VERSION && \
37- INSTALL_PKGS="gettext hostname nss_wrapper-libs httpd mod_ssl mod_ldap mod_session mod_security mod_auth_mellon sscg" && \
38- yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
39- rpm -V $INSTALL_PKGS && \
40- httpd -v | grep -qe "Apache/$HTTPD_VERSION" && echo "Found VERSION $HTTPD_VERSION" && \
38+ INSTALL_PKGS="gettext hostname nss_wrapper-libs httpd mod_ssl mod_ldap mod_session mod_security mod_auth_mellon sscg" && \
39+ yum install -y --setopt=tsflags=nodocs ${ INSTALL_PKGS} && \
40+ rpm -V ${ INSTALL_PKGS} && \
41+ httpd -v | grep -qe "Apache/${ HTTPD_VERSION} " && echo "Found VERSION ${ HTTPD_VERSION} " && \
4142 yum -y clean all --enablerepo='*'
4243
4344ENV HTTPD_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/httpd/ \
@@ -52,8 +53,8 @@ ENV HTTPD_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/httpd/ \
5253 HTTPD_DATA_ORIG_PATH=/var/www \
5354 HTTPD_LOG_PATH=/var/log/httpd
5455
55- COPY 2.4 /s2i/bin/ $STI_SCRIPTS_PATH
56- COPY 2.4 /root /
56+ COPY ${HTTPD_VERSION} /s2i/bin/ ${ STI_SCRIPTS_PATH}
57+ COPY ${HTTPD_VERSION} /root /
5758
5859# Reset permissions of filesystem to default values
5960RUN /usr/libexec/httpd-prepare && rpm-file-permissions
0 commit comments