mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-10-21 15:30:24 +00:00
This PR is autogenerated by the [ocp-build-data-enforcer][1]. It updates the base images in the Dockerfile used for promotion in order to ensure it matches the configuration in the [ocp-build-data repository][2] used for producing release artifacts. Instead of merging this PR you can also create an alternate PR that includes the changes found here. If you believe the content of this PR is incorrect, please contact the dptp team in #aos-art. [1]: https://github.com/openshift/ci-tools/tree/master/cmd/ocp-build-data-enforcer [2]: https://github.com/openshift/ocp-build-data/tree/openshift-4.6/images
42 lines
1.4 KiB
Docker
42 lines
1.4 KiB
Docker
# This dockerfile is specific to building Multus for OpenShift
|
|
FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-1.15-openshift-4.6 as rhel8
|
|
ADD . /usr/src/multus-cni
|
|
WORKDIR /usr/src/multus-cni
|
|
ENV CGO_ENABLED=1
|
|
ENV GO111MODULE=off
|
|
ENV VERSION=rhel8 COMMIT=unset
|
|
RUN ./build && \
|
|
cd /usr/src/multus-cni/bin
|
|
WORKDIR /
|
|
|
|
FROM registry.svc.ci.openshift.org/ocp/builder:rhel-7-golang-openshift-4.6 as rhel7
|
|
ADD . /usr/src/multus-cni
|
|
WORKDIR /usr/src/multus-cni
|
|
ENV CGO_ENABLED=1
|
|
ENV GO111MODULE=off
|
|
RUN ./build && \
|
|
cd /usr/src/multus-cni/bin
|
|
|
|
WORKDIR /usr/src/multus-cni
|
|
ENV GO111MODULE=off
|
|
RUN ./build && \
|
|
cd /usr/src/multus-cni/bin
|
|
WORKDIR /
|
|
|
|
FROM registry.svc.ci.openshift.org/ocp/4.6:base
|
|
RUN mkdir -p /usr/src/multus-cni/images && \
|
|
mkdir -p /usr/src/multus-cni/bin && \
|
|
mkdir -p /usr/src/multus-cni/rhel7/bin && \
|
|
mkdir -p /usr/src/multus-cni/rhel8/bin
|
|
COPY --from=rhel7 /usr/src/multus-cni/bin/multus /usr/src/multus-cni/rhel7/bin
|
|
COPY --from=rhel8 /usr/src/multus-cni/bin/multus /usr/src/multus-cni/bin
|
|
COPY --from=rhel8 /usr/src/multus-cni/bin/multus /usr/src/multus-cni/rhel8/bin
|
|
ADD ./images/entrypoint.sh /
|
|
|
|
LABEL io.k8s.display-name="Multus CNI" \
|
|
io.k8s.description="This is a component of OpenShift Container Platform and provides a meta CNI plugin." \
|
|
io.openshift.tags="openshift" \
|
|
maintainer="Doug Smith <dosmith@redhat.com>"
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|