From 02d3e734622e13c614a8aa5913ed337529aeddc9 Mon Sep 17 00:00:00 2001 From: Caleigh Runge-Hottman Date: Wed, 7 May 2025 14:20:48 -0400 Subject: [PATCH] Updates to fakefront containerfile [RHELDST-31430] The exodus-lambda package's runtime was updated to python3.11 quite a while ago, but the fakefront build was previously missed. This commit builds the fakefront image using python3.11. --- support/fakefront/Containerfile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/support/fakefront/Containerfile b/support/fakefront/Containerfile index 79ac01f3..62e1c3b6 100644 --- a/support/fakefront/Containerfile +++ b/support/fakefront/Containerfile @@ -1,12 +1,20 @@ -FROM registry.access.redhat.com/ubi8/ubi-minimal@sha256:b2a1bec3dfbc7a14a1d84d98934dfe8fdde6eb822a211286601cf109cbccb075 +FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:e1c4703364c5cb58f5462575dc90345bcd934ddc45e6c32f9c162f2b5617681c COPY . /usr/local/src/exodus-lambda RUN \ - microdnf -y install shadow-utils python39 /usr/bin/openssl /usr/bin/envsubst \ + # Install shadow-utils for adduser functionality + microdnf -y install shadow-utils \ + # Install extra commands needed for build + && microdnf -y install python3.11 python3.11-devel python3.11-pip gcc make \ + && microdnf -y install /usr/bin/openssl /usr/bin/envsubst \ + # Ensure packages are up-to-date + && microdnf -y update \ + # Install application itself && cd /usr/local/src/exodus-lambda \ - && pip3 install --require-hashes -r requirements-fakefront.txt \ - && pip3 install --editable . \ + && pip3.11 install --require-hashes -r requirements-fakefront.txt \ + && pip3.11 install --editable . \ + # Clean up unnecessary data && microdnf clean all && rm -rf /var/cache/yum RUN adduser fakefront