FROM openshift/golang-builder:rhel_8_golang_1.15 AS builder
ENV __doozer=update BUILD_RELEASE=202010311441.p0 BUILD_VERSION=v4.6.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=6 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.6.0-202010311441.p0 SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=1d05080 OS_GIT_VERSION=4.6.0-202010311441.p0-1d05080 SOURCE_DATE_EPOCH=1600496049 SOURCE_GIT_COMMIT=1d05080e5de85b0f5c980d950b8e86772f82ca40 SOURCE_GIT_TAG=1d05080 SOURCE_GIT_URL=https://github.com/openshift/bond-cni 
WORKDIR /go/src/github.com/openshift/bond-cni
COPY . .
RUN ./build.sh

FROM openshift/ose-base:v4.6.0.20201031.150052
ENV __doozer=update BUILD_RELEASE=202010311441.p0 BUILD_VERSION=v4.6.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=6 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.6.0-202010311441.p0 SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=1d05080 OS_GIT_VERSION=4.6.0-202010311441.p0-1d05080 SOURCE_DATE_EPOCH=1600496049 SOURCE_GIT_COMMIT=1d05080e5de85b0f5c980d950b8e86772f82ca40 SOURCE_GIT_TAG=1d05080 SOURCE_GIT_URL=https://github.com/openshift/bond-cni 

COPY --from=builder /go/src/github.com/openshift/bond-cni/bin/bond /bondcni/bond

LABEL \
        io.k8s.display-name="bond-cni" \
        io.k8s.description="This is an image containing the bond-cni executable" \
        io.openshift.tags="openshift" \
        name="openshift/ose-network-interface-bond-cni" \
        com.redhat.component="ose-network-interface-bond-cni-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Networking" \
        io.openshift.maintainer.subcomponent="multus" \
        release="202010311441.p0" \
        io.openshift.build.commit.id="1d05080e5de85b0f5c980d950b8e86772f82ca40" \
        io.openshift.build.source-location="https://github.com/openshift/bond-cni" \
        io.openshift.build.commit.url="https://github.com/openshift/bond-cni/commit/1d05080e5de85b0f5c980d950b8e86772f82ca40" \
        version="v4.6.0"

