-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1157 from rbaturov/must-gather-dockerfile-konflux
konflux: add a dockerfile to must gather
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |