-
Notifications
You must be signed in to change notification settings - Fork 19
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 #201 from red-hat-storage/sync_ds--main
Syncing latest changes from main for odf-must-gather
- Loading branch information
Showing
2 changed files
with
8 additions
and
11 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 |
---|---|---|
@@ -1,20 +1,17 @@ | ||
# Builder stage | ||
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.16 AS builder | ||
WORKDIR /go/src/github.com/red-hat-storage/odf-must-gather | ||
FROM registry.ci.openshift.org/ocp/4.16:cli | ||
|
||
COPY . . | ||
ENV GO_PACKAGE github.com/red-hat-storage/odf-must-gather | ||
WORKDIR /tmp | ||
|
||
# Prod stage | ||
FROM registry.ci.openshift.org/ocp/4.16:cli | ||
COPY . . | ||
|
||
RUN mkdir -p /templates | ||
COPY --from=builder /go/src/github.com/red-hat-storage/odf-must-gather/collection-scripts/* /usr/bin/ | ||
COPY --from=builder /go/src/github.com/red-hat-storage/odf-must-gather/templates/* /templates/ | ||
|
||
COPY collection-scripts/* /usr/bin/ | ||
COPY templates/* /templates/ | ||
|
||
# We do not need it as of now | ||
# jq is not preinstalled on openshift/origin-cli either | ||
# Removing this step makes local development easier. | ||
# RUN yum install --setopt=tsflags=nodocs -y jq && yum clean all && rm -rf /var/cache/yum/* | ||
|
||
ENTRYPOINT /usr/bin/gather | ||
ENTRYPOINT ["/usr/bin/gather"] |
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