FROM openshift/golang-builder:1.11 AS builder
ENV __doozer=update BUILD_RELEASE=202005252115 BUILD_VERSION=v4.2.34 OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=34 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.2.34-202005252115 
ENV __doozer=merge OS_GIT_COMMIT=0098dd4 OS_GIT_VERSION=4.2.34-202005252115-0098dd4 SOURCE_DATE_EPOCH=1588365387 SOURCE_GIT_COMMIT=0098dd4d52e3760b72f47943c40590d063b6a81f SOURCE_GIT_TAG=0098dd4 SOURCE_GIT_URL=https://github.com/openshift/local-storage-operator 
WORKDIR /go/src/github.com/openshift/local-storage-operator
COPY . .
RUN make build

FROM openshift/ose-base:v4.2.34.20200525.211548
ENV __doozer=update BUILD_RELEASE=202005252115 BUILD_VERSION=v4.2.34 OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=34 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.2.34-202005252115 
ENV __doozer=merge OS_GIT_COMMIT=0098dd4 OS_GIT_VERSION=4.2.34-202005252115-0098dd4 SOURCE_DATE_EPOCH=1588365387 SOURCE_GIT_COMMIT=0098dd4d52e3760b72f47943c40590d063b6a81f SOURCE_GIT_TAG=0098dd4 SOURCE_GIT_URL=https://github.com/openshift/local-storage-operator 
COPY --from=builder /go/src/github.com/openshift/local-storage-operator/_output/bin/diskmaker /usr/bin/
COPY manifests /manifests
ENTRYPOINT ["/usr/bin/diskmaker"]

LABEL \
        io.k8s.display-name="OpenShift local storage diskmaker" \
        io.k8s.description="This is a component of OpenShift and manages local disks." \
        maintainer="Hemant Kumar <hekumar@redhat.com>" \
        name="openshift/ose-local-storage-diskmaker" \
        com.redhat.component="local-storage-diskmaker-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Storage" \
        version="v4.2.34" \
        release="202005252115" \
        io.openshift.build.commit.id="0098dd4d52e3760b72f47943c40590d063b6a81f" \
        io.openshift.build.source-location="https://github.com/openshift/local-storage-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/local-storage-operator/commit/0098dd4d52e3760b72f47943c40590d063b6a81f"

