|
| 1 | +FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.15 AS builder |
| 2 | +WORKDIR /go/src/github.com/openshift/api |
| 3 | +COPY . . |
| 4 | +ENV GO_PACKAGE github.com/openshift/api |
| 5 | +RUN make build --warn-undefined-variables |
| 6 | + |
| 7 | +FROM registry.ci.openshift.org/ocp/4.14:base |
| 8 | + |
| 9 | +# copy the built binaries to /usr/bin |
| 10 | +COPY --from=builder /go/src/github.com/openshift/api/render /usr/bin/ |
| 11 | +COPY --from=builder /go/src/github.com/openshift/api/write-available-featuresets /usr/bin/ |
| 12 | + |
| 13 | +# this directory is used to produce rendered manifests that the installer applies (but does not maintain) in bootkube |
| 14 | +RUN mkdir -p /usr/share/bootkube/manifests/manifests |
| 15 | +COPY config/v1/*_config-operator_*.yaml /usr/share/bootkube/manifests/manifests |
| 16 | +COPY quota/v1/*.crd.yaml /usr/share/bootkube/manifests/manifests |
| 17 | +COPY security/v1/*.crd.yaml /usr/share/bootkube/manifests/manifests |
| 18 | +COPY securityinternal/v1/*.crd.yaml /usr/share/bootkube/manifests/manifests |
| 19 | +COPY authorization/v1/*.crd.yaml /usr/share/bootkube/manifests/manifests |
| 20 | +COPY operator/v1alpha1/0000_10_config-operator_01_imagecontentsourcepolicy.crd.yaml /usr/share/bootkube/manifests/manifests |
| 21 | + |
| 22 | +# these are applied by the CVO |
| 23 | +COPY manifests /manifests |
| 24 | +# TODO copy these back when we're ready to make the switch from cluster-config-operator to here |
| 25 | +#COPY config/v1/*_config-operator_*.yaml /manifests |
| 26 | +#COPY quota/v1/*.crd.yaml /manifests |
| 27 | +#COPY security/v1/*.crd.yaml /manifests |
| 28 | +#COPY securityinternal/v1/*.crd.yaml /manifests |
| 29 | +#COPY authorization/v1/*.crd.yaml /manifests |
| 30 | +#COPY operator/v1alpha1/0000_10_config-operator_01_imagecontentsourcepolicy.crd.yaml /manifests |
| 31 | +#COPY operator/v1/0000_10_config-operator_*.yaml /manifests |
| 32 | +#COPY payload-command/empty-resources /manifests |
| 33 | + |
| 34 | +# TODO uncomment after all the other "add a new image" steps are complete. |
| 35 | +#LABEL io.openshift.release.operator true |
0 commit comments