Skip to content

Commit

Permalink
update images with redhat catalog images
Browse files Browse the repository at this point in the history
- OpenShift CI registry is not available in Konflux and using secret to
  access is not a good idea
- updated Dockerfiles to use Red Hat catalog images: https://catalog.redhat.com/software/containers/explore
- Refer BUILD-957

Signed-off-by: Avinal Kumar <[email protected]>
  • Loading branch information
avinal committed May 7, 2024
1 parent cf116d9 commit c9af40d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
FROM registry.access.redhat.com/ubi9/go-toolset:1.20.12 AS builder
WORKDIR /go/src/github.com/openshift/csi-driver-shared-resource
# to make SAST/SNYK happy
RUN rm -rf examples
Expand All @@ -8,7 +8,7 @@ RUN rm -rf /go/src/github.com/openshift/csi-driver-shared-resource/examples
RUN rm -f /go/src/github.com/openshift/csi-driver-shared-resource/vendor/k8s.io/apimachinery/pkg/util/managedfields/pod.yaml
RUN make build

FROM registry.ci.openshift.org/ocp/4.16:base-rhel9
FROM registry.access.redhat.com/ubi9/ubi:9.4
COPY --from=builder /go/src/github.com/openshift/csi-driver-shared-resource/_output/csi-driver-shared-resource /usr/bin/
ENTRYPOINT []
CMD ["/usr/bin/csi-driver-shared-resource"]
CMD ["/usr/bin/csi-driver-shared-resource"]
6 changes: 3 additions & 3 deletions Dockerfile.webhook
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
FROM registry.access.redhat.com/ubi9/go-toolset:1.20.12 AS builder
WORKDIR /go/src/github.com/openshift/csi-driver-shared-resource
# to make SAST/SNYK happy
RUN rm -rf examples
Expand All @@ -8,6 +8,6 @@ RUN rm -rf /go/src/github.com/openshift/csi-driver-shared-resource/examples
RUN rm -f /go/src/github.com/openshift/csi-driver-shared-resource/vendor/k8s.io/apimachinery/pkg/util/managedfields/pod.yaml
RUN make build-webhook

FROM registry.ci.openshift.org/ocp/4.16:base-rhel9
FROM registry.access.redhat.com/ubi9/ubi:9.4
COPY --from=builder /go/src/github.com/openshift/csi-driver-shared-resource/_output/csi-driver-shared-resource-webhook /usr/bin/
ENTRYPOINT ["/usr/bin/csi-driver-shared-resource-webhook"]
ENTRYPOINT ["/usr/bin/csi-driver-shared-resource-webhook"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ifeq ($(TARGET_GOARCH), amd64)
RACE = -race
endif

GOFLAGS ?= -a -mod=vendor $(RACE)
GOFLAGS ?= -a -mod=vendor -buildvcs=false $(RACE)

.DEFAULT_GOAL := help

Expand Down

0 comments on commit c9af40d

Please sign in to comment.