Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2.4/Dockerfile.c10s
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ LABEL summary="$SUMMARY" \
io.openshift.tags="builder,$NAME,$NAME-$HTTPD_SHORT_VERSION" \
name="sclorg/$NAME-$HTTPD_SHORT_VERSION-c10s" \
version="1" \
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#rhel" \
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" \
com.redhat.component="httpd-24-container" \
usage="s2i build https://github.com/sclorg/httpd-container.git --context-dir=examples/sample-test-app/ quay.io/sclorg/$NAME-$HTTPD_SHORT_VERSION-c10s sample-server" \
maintainer="SoftwareCollections.org <[email protected]>"
Expand Down
70 changes: 70 additions & 0 deletions 2.4/Dockerfile.rhel10
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
FROM ubi10/s2i-core

# Apache HTTP Server image.
#
# Volumes:
# * /var/www - Datastore for httpd
# * /var/log/httpd24 - Storage for logs when $HTTPD_LOG_TO_VOLUME is set
# Environment:
# * $HTTPD_LOG_TO_VOLUME (optional) - When set, httpd will log into /var/log/httpd24

ENV HTTPD_VERSION=2.4 \
HTTPD_SHORT_VERSION=24 \
NAME=httpd \
ARCH=x86_64

ENV SUMMARY="Platform for running Apache httpd $HTTPD_VERSION or building httpd-based application" \
DESCRIPTION="Apache httpd $HTTPD_VERSION available as container, is a powerful, efficient, \
and extensible web server. Apache supports a variety of features, many implemented as compiled modules \
which extend the core functionality. \
These can range from server-side programming language support to authentication schemes. \
Virtual hosting allows one Apache installation to serve many different Web sites."

LABEL summary="$SUMMARY" \
description="$DESCRIPTION" \
io.k8s.description="$DESCRIPTION" \
io.k8s.display-name="Apache httpd $HTTPD_VERSION" \
io.openshift.expose-services="8080:http,8443:https" \
io.openshift.tags="builder,$NAME,$NAME-$HTTPD_SHORT_VERSION" \
name="ubi10/httpd-24" \
version="1" \
com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" \
com.redhat.component="httpd-24-container" \
usage="s2i build https://github.com/sclorg/httpd-container.git --context-dir=examples/sample-test-app/ ubi10/httpd-24 sample-server" \
maintainer="SoftwareCollections.org <[email protected]>"

EXPOSE 8080
EXPOSE 8443

RUN INSTALL_PKGS="gettext hostname nss_wrapper-libs bind-utils httpd mod_ssl mod_ldap mod_session sscg" && \
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
httpd -v | grep -qe "Apache/$HTTPD_VERSION" && echo "Found VERSION $HTTPD_VERSION" && \
dnf -y clean all --enablerepo='*'

ENV HTTPD_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/httpd/ \
HTTPD_APP_ROOT=${APP_ROOT} \
HTTPD_CONFIGURATION_PATH=${APP_ROOT}/etc/httpd.d \
HTTPD_MAIN_CONF_PATH=/etc/httpd/conf \
HTTPD_MAIN_CONF_MODULES_D_PATH=/etc/httpd/conf.modules.d \
HTTPD_MAIN_CONF_D_PATH=/etc/httpd/conf.d \
HTTPD_TLS_CERT_PATH=/etc/httpd/tls \
HTTPD_VAR_RUN=/var/run/httpd \
HTTPD_DATA_PATH=/var/www \
HTTPD_DATA_ORIG_PATH=/var/www \
HTTPD_LOG_PATH=/var/log/httpd

COPY 2.4/s2i/bin/ $STI_SCRIPTS_PATH
COPY 2.4/root /

# Reset permissions of filesystem to default values
RUN /usr/libexec/httpd-prepare && rpm-file-permissions

USER 1001

# Not using VOLUME statement since it's not working in OpenShift Online:
# https://github.com/sclorg/httpd-container/issues/30
# VOLUME ["${HTTPD_DATA_PATH}"]
# VOLUME ["${HTTPD_LOG_PATH}"]

CMD ["/usr/bin/run-httpd"]
1 change: 1 addition & 0 deletions 2.4/root/usr/share/container-scripts/httpd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ Dockerfile and other sources for this container image are available on
https://github.com/sclorg/httpd-container.
In that repository, the Dockerfile for RHEL8 is called Dockerfile.rhel8,
the Dockerfile for RHEL9 is called Dockerfile.rhel9,
the Dockerfile for RHEL10 is called Dockerfile.rhel10,
the Dockerfile for CentOS Stream 9 is called Dockerfile.c9s,
the Dockerfile for CentOS Stream 10 is called Dockerfile.c10s,
and the Dockerfile for Fedora is called Dockerfile.fedora.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Apache HTTPD versions currently provided are:
RHEL versions currently supported are:
* RHEL 8
* RHEL 9
* RHEL 10

CentOS Stream versions currently supported are:
* CentOS Stream 9
Expand All @@ -32,7 +33,7 @@ CentOS Stream versions currently supported are:

Installation
------------
Choose either the CentOS Stream 9, CentOS Stream 10 or RHEL8 based image:
Choose either the CentOS Stream 9, CentOS Stream 10, RHEL8 based image, RHEL9 based image, or RHEL10 based image:

* **RHEL8 based image**

Expand All @@ -43,7 +44,7 @@ Choose either the CentOS Stream 9, CentOS Stream 10 or RHEL8 based image:
$ podman pull registry.access.redhat.com/rhel8/httpd-24
```

To build a RHEL7 based Apache HTTP Server image, you need to run Docker build on a properly
To build a RHEL8 based Apache HTTP Server image, you need to run Docker build on a properly
subscribed RHEL machine.

```
Expand Down
Loading