FROM openshift/golang-builder:1.11 AS builder
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=24 OS_GIT_VERSION=4.2.24-202003161048-0360f42 OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=0360f4290cf3f38f63cd15eb2bcfb260927e6448 SOURCE_GIT_TAG=0360f42 SOURCE_GIT_URL=https://github.com/openshift/local-storage-operator SOURCE_DATE_EPOCH=1578425722 OS_GIT_COMMIT=0360f42 BUILD_VERSION=v4.2.24 BUILD_RELEASE=202003161048
WORKDIR /go/src/github.com/openshift/local-storage-operator
COPY . .
RUN make build

FROM openshift/ose-base:v4.2.24.20200316.104823
ENV OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=24 OS_GIT_VERSION=4.2.24-202003161048-0360f42 OS_GIT_TREE_STATE=clean SOURCE_GIT_COMMIT=0360f4290cf3f38f63cd15eb2bcfb260927e6448 SOURCE_GIT_TAG=0360f42 SOURCE_GIT_URL=https://github.com/openshift/local-storage-operator SOURCE_DATE_EPOCH=1578425722 OS_GIT_COMMIT=0360f42 BUILD_VERSION=v4.2.24 BUILD_RELEASE=202003161048
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" \
        version="v4.2.24" \
        release="202003161048" \
        io.openshift.build.commit.id="0360f4290cf3f38f63cd15eb2bcfb260927e6448" \
        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/0360f4290cf3f38f63cd15eb2bcfb260927e6448"

