Skip to content

Commit

Permalink
chore(containers): use ubi-micro for operator image
Browse files Browse the repository at this point in the history
Use only ubi-micro for the operator plugin

Signed-off-by: Jonathan Gonzalez V. <[email protected]>
  • Loading branch information
sxd authored and jbattiato committed Nov 28, 2024
1 parent afd4603 commit 8d5d871
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions containers/Dockerfile.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ COPY ../internal/ internal/
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \
CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/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 gcr.io/distroless/static:nonroot
# Use a minimal base image to package the manager binary
# Refer to https://www.redhat.com/en/blog/introduction-ubi-micro for more details
FROM registry.access.redhat.com/ubi9/ubi-micro

ENV SUMMARY="CloudNativePG Barman plugin" \
DESCRIPTION="Container image that provides the barman-cloud plugin"
Expand All @@ -35,7 +35,7 @@ LABEL summary="$SUMMARY" \
description="$DESCRIPTION" \
io.k8s.display-name="$SUMMARY" \
io.k8s.description="$DESCRIPTION" \
name="CloudNativePG Barman plugin" \
name="$SUMMARY" \
vendor="CloudNativePG Contributors" \
url="https://cloudnative-pg.io/" \
version="" \
Expand All @@ -45,4 +45,4 @@ WORKDIR /
COPY --from=gobuilder /workspace/manager .
USER 65532:65532

ENTRYPOINT ["/manager"]
ENTRYPOINT ["/manager"]

0 comments on commit 8d5d871

Please sign in to comment.