Skip to content

Commit 475745e

Browse files
committed
chore(containers): use ubi-micro for operator image
Use only ubi-micro for the operator plugin Signed-off-by: Jonathan Gonzalez V. <[email protected]>
1 parent e0926e9 commit 475745e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

containers/Dockerfile.plugin

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ COPY ../internal/ internal/
2424
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \
2525
CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/manager/main.go
2626

27-
# Use distroless as minimal base image to package the manager binary
28-
# Refer to https://github.com/GoogleContainerTools/distroless for more details
29-
FROM gcr.io/distroless/static:nonroot
27+
# Use a minimal base image to package the manager binary
28+
# Refer to https://www.redhat.com/en/blog/introduction-ubi-micro for more details
29+
FROM registry.access.redhat.com/ubi9/ubi-micro
3030

3131
ENV SUMMARY="CloudNativePG Barman plugin" \
3232
DESCRIPTION="Container image that provides the barman-cloud plugin"
@@ -35,7 +35,7 @@ LABEL summary="$SUMMARY" \
3535
description="$DESCRIPTION" \
3636
io.k8s.display-name="$SUMMARY" \
3737
io.k8s.description="$DESCRIPTION" \
38-
name="CloudNativePG Barman plugin" \
38+
name="$SUMMARY" \
3939
vendor="CloudNativePG Contributors" \
4040
url="https://cloudnative-pg.io/" \
4141
version="" \
@@ -45,4 +45,4 @@ WORKDIR /
4545
COPY --from=gobuilder /workspace/manager .
4646
USER 65532:65532
4747

48-
ENTRYPOINT ["/manager"]
48+
ENTRYPOINT ["/manager"]

0 commit comments

Comments
 (0)