forked from openshift/alibaba-disk-csi-driver-operator
/
Dockerfile.rhel8
33 lines (28 loc) · 1.61 KB
/
Dockerfile.rhel8
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
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.20-openshift-4.15 AS builder
WORKDIR /go/src/github.com/openshift/api
COPY . .
ENV GO_PACKAGE github.com/openshift/api
RUN make build --warn-undefined-variables
FROM registry.ci.openshift.org/ocp/4.15:base-rhel9
# copy the built binaries to /usr/bin
COPY --from=builder /go/src/github.com/openshift/api/render /usr/bin/
COPY --from=builder /go/src/github.com/openshift/api/write-available-featuresets /usr/bin/
# this directory is used to produce rendered manifests that the installer applies (but does not maintain) in bootkube
RUN mkdir -p /usr/share/bootkube/manifests/manifests
COPY config/v1/*_config-operator_*.yaml /usr/share/bootkube/manifests/manifests
COPY quota/v1/*.crd.yaml /usr/share/bootkube/manifests/manifests
COPY security/v1/*.crd.yaml /usr/share/bootkube/manifests/manifests
COPY securityinternal/v1/*.crd.yaml /usr/share/bootkube/manifests/manifests
COPY authorization/v1/*.crd.yaml /usr/share/bootkube/manifests/manifests
COPY operator/v1alpha1/0000_10_config-operator_01_imagecontentsourcepolicy.crd.yaml /usr/share/bootkube/manifests/manifests
# these are applied by the CVO
COPY manifests /manifests
COPY config/v1/*_config-operator_*.yaml /manifests
COPY quota/v1/*.crd.yaml /manifests
COPY security/v1/*.crd.yaml /manifests
COPY securityinternal/v1/*.crd.yaml /manifests
COPY authorization/v1/*.crd.yaml /manifests
COPY operator/v1alpha1/0000_10_config-operator_01_imagecontentsourcepolicy.crd.yaml /manifests
COPY operator/v1/0000_10_config-operator_*.yaml /manifests
COPY payload-command/empty-resources /manifests
LABEL io.openshift.release.operator true