-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathContainerfile.cert-manager-operator
42 lines (33 loc) · 1.64 KB
/
Containerfile.cert-manager-operator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.22 AS builder
ARG SOURCE_DIR="/go/src/github.com/openshift/cert-manager-operator"
WORKDIR $SOURCE_DIR
COPY cert-manager-operator $SOURCE_DIR
COPY cert-manager-operator/LICENSE /licenses/
RUN make build --warn-undefined-variables
FROM registry.redhat.io/rhel9-4-els/rhel:9.4
# Values for below ARGs will passed from tekton configs for konflux builds.
## Release version of the cert-manager-operator source code used in the build.
ARG RELEASE_VERSION
## Commit hash that considered for the image build.
ARG COMMIT_SHA
## github URL of the cert-manager-operator source repository.
ARG SOURCE_URL
ARG SOURCE_DIR="/go/src/github.com/openshift/cert-manager-operator"
COPY --from=builder $SOURCE_DIR/cert-manager-operator /usr/bin/
COPY --from=builder /licenses /licenses
USER 65534:65534
LABEL com.redhat.component="cert-manager-operator-container" \
name="cert-manager/cert-manager-operator-rhel9" \
version="${RELEASE_VERSION}" \
summary="cert-manager-operator" \
maintainer="Red Hat, Inc." \
description="cert-manager-operator-container" \
io.openshift.expose-services="" \
io.openshift.build.commit.id="${COMMIT_SHA}" \
io.openshift.build.source-location="${SOURCE_URL}" \
io.openshift.build.commit.url="${SOURCE_URL}/commit/${COMMIT_SHA}" \
io.openshift.maintainer.product="OpenShift Container Platform" \
io.openshift.tags="data,images,operator,cert-manager" \
io.k8s.display-name="openshift-cert-manager-operator" \
io.k8s.description="cert-manager-operator-container"
ENTRYPOINT ["/usr/bin/cert-manager-operator"]