FROM openshift/golang-builder:rhel_8_golang_1.16 AS builder
ENV __doozer=update BUILD_RELEASE=202109210857.p0.git.515e050.assembly.stream BUILD_VERSION=v4.8.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=8 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.8.0-202109210857.p0.git.515e050.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=515e050 OS_GIT_VERSION=4.8.0-202109210857.p0.git.515e050.assembly.stream-515e050 SOURCE_DATE_EPOCH=1627395326 SOURCE_GIT_COMMIT=515e0502a886f0d7e7e0125792251d5872cc503b SOURCE_GIT_TAG=515e050 SOURCE_GIT_URL=https://github.com/openshift/must-gather 
WORKDIR /go/src/github.com/openshift/must-gather
COPY . .
ENV GO_PACKAGE github.com/openshift/must-gather

FROM openshift/ose-cli:v4.8.0.20210921.090512
ENV __doozer=update BUILD_RELEASE=202109210857.p0.git.515e050.assembly.stream BUILD_VERSION=v4.8.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=8 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.8.0-202109210857.p0.git.515e050.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=515e050 OS_GIT_VERSION=4.8.0-202109210857.p0.git.515e050.assembly.stream-515e050 SOURCE_DATE_EPOCH=1627395326 SOURCE_GIT_COMMIT=515e0502a886f0d7e7e0125792251d5872cc503b SOURCE_GIT_TAG=515e050 SOURCE_GIT_URL=https://github.com/openshift/must-gather 
COPY --from=builder /go/src/github.com/openshift/must-gather/collection-scripts/* /usr/bin/

LABEL \
        name="openshift/ose-must-gather" \
        com.redhat.component="ose-must-gather-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="oc" \
        release="202109210857.p0.git.515e050.assembly.stream" \
        io.openshift.build.commit.id="515e0502a886f0d7e7e0125792251d5872cc503b" \
        io.openshift.build.source-location="https://github.com/openshift/must-gather" \
        io.openshift.build.commit.url="https://github.com/openshift/must-gather/commit/515e0502a886f0d7e7e0125792251d5872cc503b" \
        version="v4.8.0"

