Skip to content

Commit

Permalink
Merge pull request #201 from red-hat-storage/sync_ds--main
Browse files Browse the repository at this point in the history
Syncing latest changes from main for odf-must-gather
  • Loading branch information
openshift-merge-bot[bot] authored Sep 19, 2024
2 parents 1d7a847 + 7ab2d11 commit c46cfc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions Dockerfile
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"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ endif
@oc login --token=$(ODF_MG_TOKEN) --server=https://api.ci.l2s4.p1.openshiftapps.com:6443 1>/dev/null

@echo "Logging into the CI image registry..."
@oc registry login --registry registry.ci.openshift.org &>/dev/null
@REGISTRY_AUTH_FILE=~/.docker/config.json oc registry login --registry registry.ci.openshift.org 2>/dev/null

@echo "Will be using $(IMG_TAG) as the image tag, you can change this using IMG_TAG env var."

Expand Down

0 comments on commit c46cfc9

Please sign in to comment.