Skip to content

Commit

Permalink
Merge pull request #1157 from rbaturov/must-gather-dockerfile-konflux
Browse files Browse the repository at this point in the history
konflux: add a dockerfile to must gather
  • Loading branch information
openshift-merge-bot[bot] authored Jan 21, 2025
2 parents a4f1d53 + 8e862d9 commit c17907b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .konflux/Dockerfile.must-gather
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM brew.registry.redhat.io/rh-osbs/openshift-ose-must-gather-rhel9:v4.19 as mgbuilder

COPY . .

# Save original gather script
RUN mv /usr/bin/gather /usr/bin/gather_original

RUN mkdir -p /usr/libexec/must-gather/numaresources-operator && \
cp /must-gather/collection-scripts/* /usr/libexec/must-gather/numaresources-operator/

FROM registry.redhat.io/rhel9-4-els/rhel-minimal:9.4

RUN microdnf install -y procps-ng tar rsync ; microdnf clean all

# Copy must-gather required binaries
COPY --from=mgbuilder /usr/bin/openshift-must-gather /usr/bin/openshift-must-gather
COPY --from=mgbuilder /usr/bin/oc /usr/bin/oc

COPY --from=mgbuilder /usr/libexec/must-gather/numaresources-operator/* /usr/bin/

ENTRYPOINT ["/usr/bin/gather"]

LABEL com.redhat.component="numaresources-must-gather-container" \
name="openshift4/numaresources-must-gather-rhel9" \
upstream-vcs-type="git" \
summary="numa resources data gathering image" \
io.openshift.expose-services="" \
io.openshift.tags="data,images" \
io.k8s.display-name="numaresources-must-gather" \
description="numa resources data gathering image." \
maintainer="[email protected]" \
io.openshift.maintainer.component="NUMA Resources Operator" \
io.openshift.maintainer.product="OpenShift Container Platform"

0 comments on commit c17907b

Please sign in to comment.