Skip to content
Closed
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: 2 additions & 0 deletions .github/workflows/container-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
- created

jobs:
distgen-check:
uses: "sclorg/ci-actions/.github/workflows/distgen-check.yml@main"
check-readme:
uses: "sclorg/ci-actions/.github/workflows/check-readme.yml@main"
container-tests:
Expand Down
Empty file removed 1.20/.exclude-c9s
Empty file.
Empty file removed 1.20/.exclude-fedora
Empty file.
Empty file removed 1.20/.exclude-rhel8
Empty file.
94 changes: 0 additions & 94 deletions 1.20/Dockerfile.c9s

This file was deleted.

99 changes: 0 additions & 99 deletions 1.20/Dockerfile.fedora

This file was deleted.

12 changes: 3 additions & 9 deletions 1.20/Dockerfile.rhel8
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,17 @@ ENV NGINX_CONFIGURATION_PATH=${APP_ROOT}/etc/nginx.d \
NGINX_PERL_MODULE_PATH=${APP_ROOT}/etc/perl

RUN yum -y module enable nginx:$NGINX_VERSION && \
INSTALL_PKGS="nss_wrapper gettext hostname nginx nginx-mod-stream nginx-mod-http-perl" && \
INSTALL_PKGS="nss_wrapper-libs gettext hostname nginx nginx-mod-stream nginx-mod-http-perl" && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
nginx -v 2>&1 | grep -qe "nginx/$NGINX_VERSION\." && echo "Found VERSION $NGINX_VERSION" && \
yum -y clean all --enablerepo='*'

# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
COPY 1.20/s2i/bin/ $STI_SCRIPTS_PATH
COPY $NGINX_VERSION/s2i/bin/ $STI_SCRIPTS_PATH

# Copy extra files to the image.
COPY 1.20/root/ /

COPY $NGINX_VERSION/root/ /

# Changing ownership and user rights to support following use-cases:
# 1) running container on OpenShift, whose default security model
Expand Down Expand Up @@ -86,9 +85,4 @@ USER 1001

STOPSIGNAL SIGQUIT

# Not using VOLUME statement since it's not working in OpenShift Online:
# https://github.com/sclorg/httpd-container/issues/30
# VOLUME ["/usr/share/nginx/html"]
# VOLUME ["/var/log/nginx/"]

CMD $STI_SCRIPTS_PATH/usage
7 changes: 1 addition & 6 deletions 1.20/Dockerfile.rhel9
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ENV NGINX_CONFIGURATION_PATH=${APP_ROOT}/etc/nginx.d \
NGINX_LOG_PATH=/var/log/nginx \
NGINX_PERL_MODULE_PATH=${APP_ROOT}/etc/perl

RUN INSTALL_PKGS="nss_wrapper gettext hostname nginx nginx-all-modules" && \
RUN INSTALL_PKGS="nss_wrapper-libs gettext hostname nginx nginx-all-modules" && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
nginx -v 2>&1 | grep -qe "nginx/$NGINX_VERSION\." && echo "Found VERSION $NGINX_VERSION" && \
Expand Down Expand Up @@ -84,9 +84,4 @@ USER 1001

STOPSIGNAL SIGQUIT

# Not using VOLUME statement since it's not working in OpenShift Online:
# https://github.com/sclorg/httpd-container/issues/30
# VOLUME ["/usr/share/nginx/html"]
# VOLUME ["/var/log/nginx/"]

CMD $STI_SCRIPTS_PATH/usage
9 changes: 3 additions & 6 deletions 1.20/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,12 @@ By default, nginx access logs are written to standard output and error logs are

podman logs <container>

**If `NGINX_LOG_TO_VOLUME` variable is set, nginx logs into `/var/log/nginx/`.**


See also
--------
Dockerfile and other sources for this container image are available on
https://github.com/sclorg/nginx-container.
In that repository you also can find another versions of Python environment Dockerfiles.
Dockerfile for RHEL8 it's `Dockerfile.rhel8`,
for RHEL9 it's `Dockerfile.rhel9`, Dockerfile for CentOS Stream 8 is called `Dockerfile.c8s`,
Dockerfile for CentOS Stream 9 is called `Dockerfile.c9s` and the Fedora Dockerfile is called `Dockerfile.fedora`.
for RHEL8 it's `Dockerfile.rhel8`, Dockerfile for RHEL10 is called `Dockerfile.rhel10`,
Dockerfile for CentOS Stream 9 is called `Dockerfile.c9s`,
Dockerfile for CentOS Stream 10 is called `Dockerfile.c10s`, and the Fedora Dockerfile is called `Dockerfile.fedora`.

Empty file modified 1.20/root/opt/app-root/etc/generate_container_user
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions 1.20/root/opt/app-root/nginxconf-rhscl.sed
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/listen/s%80%8080 default_server%
s/^user *nginx;//
s%/etc/opt/rh/rh-nginx120/nginx/conf.d/%/opt/app-root/etc/nginx.d/%
s%/etc/opt/rh/rh-nginx120/nginx/default.d/%/opt/app-root/etc/nginx.default.d/%
s%/opt/rh/rh-nginx120/root/usr/share/nginx/html%/opt/app-root/src%
s%/etc/nginx/conf.d/%/opt/app-root/etc/nginx.d/%
s%/etc/nginx/default.d/%/opt/app-root/etc/nginx.default.d/%
s%/usr/share/nginx/html%/opt/app-root/src%

# See: https://github.com/sclorg/nginx-container/pull/69
/error_page/d
Expand Down
2 changes: 1 addition & 1 deletion 1.20/s2i/bin/assemble
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if [ -d ./nginx-start ]; then
fi
fi

if [ -d ./nginx-perl ]; then
if [ -n "${NGINX_PERL_MODULE_PATH}" ] && [ -d ./nginx-perl ]; then
echo "---> Copying nginx perl module files..."
if [ "$(ls -A ./nginx-perl/*.pm)" ]; then
cp -av ./nginx-perl/*.pm "${NGINX_PERL_MODULE_PATH}"
Expand Down
1 change: 1 addition & 0 deletions 1.20/test
1 change: 0 additions & 1 deletion 1.20/test/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/conftest.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/constants.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/examples

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/imagestreams

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/run

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/run-openshift-pytest

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/run-openshift-remote-cluster

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/run-pytest

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test-app

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test-lib-nginx.sh

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test-lib-openshift.sh

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test-lib-remote-openshift.sh

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test-lib.sh

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test-openshift.yaml

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test_container_application.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test_container_basics.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test_container_example_apps.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test_container_sizes.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test_ocp_imagestream_s2i.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test_ocp_imagestreams.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test_ocp_local_example.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test_ocp_remote_example.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test_ocp_shared_helm_imagestreams.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test_ocp_shared_helm_template.py

This file was deleted.

1 change: 0 additions & 1 deletion 1.20/test/test_ocp_template_example_app.py

This file was deleted.

Empty file removed 1.22-micro/.exclude-fedora
Empty file.
Loading