Skip to content

Commit 2670948

Browse files
Update oci-registry base image to ubi10-minimal (#336)
* update EOL ubi8-minimal oci-registry base image to ubi10-minimal Signed-off-by: Michael Valdron <mvaldron@redhat.com> * fix: pin Docker API version to v1.43 Signed-off-by: Michael Valdron <mvaldron@redhat.com> --------- Signed-off-by: Michael Valdron <mvaldron@redhat.com>
1 parent 5e4c7a0 commit 2670948

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323
env:
2424
GO_VERSION: 1.24
2525
OAPI_CODEGEN_VERSION: v1.12.4
26+
DOCKER_API_VERSION: "1.43"
2627

2728
jobs:
2829
go:

oci-registry/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ RUN VERSION=$(git describe --match 'v[0-9]*' --dirty='.m' --always --tags) REVIS
2626
echo -n "${VERSION}" | tee /tmp/.version;
2727
RUN set -x ; CGO_ENABLED=0 GO111MODULE=auto go build -tags "include_oss,include_gcs" -trimpath -ldflags "$(cat /tmp/.ldflags) -s -w" -o /usr/bin/registry ./cmd/registry
2828

29-
FROM registry.access.redhat.com/ubi8-minimal:8.2
30-
RUN microdnf update -y && rm -rf /var/cache/yum && microdnf install ca-certificates httpd-tools
29+
FROM registry.access.redhat.com/ubi10-minimal:10.1@sha256:380da76bb8a69e333b6c11341d600f5d3aab9ee5b8c95ceb64aae2457f5c1c6e
30+
RUN microdnf update -y && rm -rf /var/cache/yum && microdnf install -y ca-certificates httpd-tools shadow-utils
3131

3232
# Create a non-root user to run the server as
3333
RUN set -x ; \
34-
adduser registry -u 1001 -G root && exit 0
34+
useradd -u 1001 -g root registry && exit 0
3535

3636
# Copy OCI registry binary from container image
3737
COPY --from=registry --chown=registry:0 /usr/bin/registry /bin/registry

0 commit comments

Comments
 (0)