mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
chore(containers): use ubi-micro for operator image (#61)
Signed-off-by: Jonathan Gonzalez V. <jonathan.gonzalez@enterprisedb.com>
This commit is contained in:
parent
e5a004d20d
commit
bb89d46f77
@ -27,9 +27,9 @@ ENV GOMODCACHE=/go/pkg/mod
|
|||||||
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build \
|
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
|
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
|
# Use a minimal base image to package the manager binary
|
||||||
# Refer to https://github.com/GoogleContainerTools/distroless for more details
|
# Refer to https://www.redhat.com/en/blog/introduction-ubi-micro for more details
|
||||||
FROM gcr.io/distroless/static:nonroot
|
FROM registry.access.redhat.com/ubi9/ubi-micro
|
||||||
|
|
||||||
ENV SUMMARY="CloudNativePG Barman plugin" \
|
ENV SUMMARY="CloudNativePG Barman plugin" \
|
||||||
DESCRIPTION="Container image that provides the barman-cloud plugin"
|
DESCRIPTION="Container image that provides the barman-cloud plugin"
|
||||||
@ -38,7 +38,7 @@ LABEL summary="$SUMMARY" \
|
|||||||
description="$DESCRIPTION" \
|
description="$DESCRIPTION" \
|
||||||
io.k8s.display-name="$SUMMARY" \
|
io.k8s.display-name="$SUMMARY" \
|
||||||
io.k8s.description="$DESCRIPTION" \
|
io.k8s.description="$DESCRIPTION" \
|
||||||
name="CloudNativePG Barman plugin" \
|
name="$SUMMARY" \
|
||||||
vendor="CloudNativePG Contributors" \
|
vendor="CloudNativePG Contributors" \
|
||||||
url="https://cloudnative-pg.io/" \
|
url="https://cloudnative-pg.io/" \
|
||||||
version="" \
|
version="" \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user