mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-06 09:16:59 +00:00
* Upgrade golang to 1.24 Signed-off-by: zhujian <jiazhu@redhat.com> * Fix lint errors Co-authored-by: gemini <gemini@google.com> Signed-off-by: zhujian <jiazhu@redhat.com> * upgrade sdk-go to latest Signed-off-by: zhujian <jiazhu@redhat.com> --------- Signed-off-by: zhujian <jiazhu@redhat.com> Co-authored-by: gemini <gemini@google.com>
24 lines
950 B
Docker
24 lines
950 B
Docker
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.24-openshift-4.20 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.20: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 payload-manifests/crds/* /usr/share/bootkube/manifests/manifests
|
|
|
|
# these are applied by the CVO
|
|
RUN mkdir -p /manifests
|
|
COPY payload-manifests/crds/* /manifests
|
|
COPY payload-manifests/featuregates/* /manifests
|
|
COPY payload-command/empty-resources /manifests
|
|
|
|
LABEL io.openshift.release.operator true
|