Skip to content

Commit 8e1bd2f

Browse files
committed
test: Update both UBI dockerfiles to use redhat/ubi9 instead of ubi9-minimal
1 parent 4f9b51b commit 8e1bd2f

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

build/ubi/Dockerfile.nginx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ADD --link --chown=101:1001 build/ubi/repos/agent.repo agent.repo
88

99
FROM ghcr.io/nginx/dependencies/nginx-ubi:ubi9@sha256:01a32246761b9bbe47a6a29bcd8ca6e9b6e331b3bdfa372d8987b622276f7025 AS ubi9-packages
1010

11-
FROM redhat/ubi9-minimal:9.6 AS ubi-nginx
11+
FROM redhat/ubi9:9.6 AS ubi-nginx
1212

1313
# renovate: datasource=github-tags depName=nginx/agent
1414
ARG NGINX_AGENT_VERSION=v3.3.1
@@ -40,11 +40,11 @@ RUN --mount=type=bind,from=nginx-files,src=nginx_signing.key,target=/tmp/nginx_s
4040
&& groupadd -g 1001 nginx \
4141
&& useradd -r -u 101 -g nginx -s /sbin/nologin -d /var/cache/nginx nginx \
4242
# Install NGINX and modules including OTEL
43-
&& microdnf --nodocs install -y nginx nginx-module-njs nginx-module-otel \
43+
&& dnf --nodocs install -y nginx nginx-module-njs nginx-module-otel \
4444
# Install nginx-agent
45-
&& microdnf --nodocs install -y nginx-agent-${NGINX_AGENT_VERSION#v}* \
45+
&& dnf --nodocs install -y nginx-agent-${NGINX_AGENT_VERSION#v}* \
4646
# Clean up (only remove what we can)
47-
&& microdnf clean all \
47+
&& dnf clean all \
4848
&& rm -rf /var/cache/yum
4949

5050
# Configure directories and logging

build/ubi/Dockerfile.nginxplus

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ADD --link --chown=101:1001 build/ubi/repos/agent.repo agent.repo
88

99
FROM ghcr.io/nginx/dependencies/nginx-ubi:ubi9@sha256:01a32246761b9bbe47a6a29bcd8ca6e9b6e331b3bdfa372d8987b622276f7025 AS ubi9-packages
1010

11-
FROM redhat/ubi9-minimal:9.6 AS ubi-nginx-plus
11+
FROM redhat/ubi9:9.6 AS ubi-nginx-plus
1212

1313
ARG NGINX_PLUS_VERSION=R35
1414

@@ -37,21 +37,21 @@ RUN --mount=type=bind,from=nginx-files,src=nginx-plus.repo,target=/etc/yum.repos
3737
--mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \
3838
--mount=type=secret,id=nginx-repo.key,dst=/etc/ssl/nginx/nginx-repo.key,mode=0644 \
3939
# Install shadow-utils for useradd and subscription-manager for repo access
40-
microdnf --nodocs install -y shadow-utils subscription-manager \
40+
dnf --nodocs install -y shadow-utils subscription-manager \
4141
&& rpm --import /tmp/nginx_signing.key \
4242
# Install c-ares from the dependencies image (contains required libs)
4343
&& rpm -Uvh /ubi-bin/c-ares-*.rpm \
4444
# Create nginx user with consistent UID/GID
4545
&& groupadd -g 1001 nginx \
4646
&& useradd -r -u 101 -g nginx -s /sbin/nologin -d /var/cache/nginx nginx \
4747
# Install NGINX Plus and modules (njs, otel)
48-
&& microdnf --nodocs install -y nginx-plus-${NGINX_PLUS_VERSION,,} \
49-
&& microdnf --nodocs install -y nginx-plus-module-njs-${NGINX_PLUS_VERSION,,} nginx-plus-module-otel-${NGINX_PLUS_VERSION,,} \
48+
&& dnf --nodocs install -y nginx-plus-${NGINX_PLUS_VERSION,,} \
49+
&& dnf --nodocs install -y nginx-plus-module-njs-${NGINX_PLUS_VERSION,,} nginx-plus-module-otel-${NGINX_PLUS_VERSION,,} \
5050
# Install nginx-agent
51-
&& microdnf --nodocs install -y nginx-agent-${NGINX_AGENT_VERSION#v}* \
51+
&& dnf --nodocs install -y nginx-agent-${NGINX_AGENT_VERSION#v}* \
5252
# Clean up
53-
&& microdnf remove -y shadow-utils subscription-manager \
54-
&& microdnf clean all \
53+
&& dnf remove -y shadow-utils subscription-manager \
54+
&& dnf clean all \
5555
&& rm -rf /var/cache/yum
5656

5757
# Configure directories and logging

0 commit comments

Comments
 (0)