Skip to content

Commit

Permalink
Merge pull request openshift#180 from avinal/avinal/images
Browse files Browse the repository at this point in the history
BUILD-961: use separate dockerfile for using catalog images
  • Loading branch information
openshift-merge-bot[bot] authored May 14, 2024
2 parents 7416198 + f36cef4 commit a67fc82
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .konflux/cdsr-webhook/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM registry.access.redhat.com/ubi9/go-toolset:1.20.12 AS builder
WORKDIR /go/src/github.com/openshift/csi-driver-shared-resource
COPY . .
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.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"]
11 changes: 11 additions & 0 deletions .konflux/cdsr/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM registry.access.redhat.com/ubi9/go-toolset:1.20.12 AS builder
WORKDIR /go/src/github.com/openshift/csi-driver-shared-resource
COPY . .
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.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"]

0 comments on commit a67fc82

Please sign in to comment.