From ce39f0ca7ff231c68835d40708dd589469bafc9a Mon Sep 17 00:00:00 2001 From: Raizel Lieberman Date: Thu, 14 Nov 2024 14:49:37 -0600 Subject: [PATCH 1/2] Use sha instead of label for docker build --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 98557025e..da59b60ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM registry.access.redhat.com/ubi8/ubi:8.10 +FROM registry.access.redhat.com/ubi8/ubi@sha256:8990388831e1b41c9a67389e4b691dae8b1283f77d5fb7263e1f4fc69c0a9d05 ENV OPERATOR=/manager \ USER_UID=1001 \ USER_NAME=nonroot From c49e711d42773f49ca52a9e9662269482faab1b8 Mon Sep 17 00:00:00 2001 From: rlieberman-splunk Date: Fri, 15 Nov 2024 11:22:24 -0600 Subject: [PATCH 2/2] add comment for ubi tag version --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index da59b60ab..f72687307 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details +# This sha relates to ubi version 8.10-1132, which is tagged as 8.10 and latest as of Nov 15, 2024 FROM registry.access.redhat.com/ubi8/ubi@sha256:8990388831e1b41c9a67389e4b691dae8b1283f77d5fb7263e1f4fc69c0a9d05 ENV OPERATOR=/manager \ USER_UID=1001 \