Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#9 from jsafrane/4.2-fixes
Browse files Browse the repository at this point in the history
Adjustments for OpenShift 4.2
  • Loading branch information
openshift-merge-robot authored Jun 10, 2019
2 parents ea0d66c + 851bb47 commit 09a381d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.openshift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.11 AS builder
WORKDIR /go/src/github.com/kubernetes-csi/external-snapshotter
COPY . .
RUN go build ./cmd/csi-snapshotter
RUN make build

FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base
COPY --from=builder /go/src/github.com/kubernetes-csi/external-snapshotter/csi-snapshotter /usr/bin/
COPY --from=builder /go/src/github.com/kubernetes-csi/external-snapshotter/bin/csi-snapshotter /usr/bin/
RUN useradd csi-snapshotter
USER csi-snapshotter
ENTRYPOINT ["/usr/bin/csi-snapshotter"]
4 changes: 2 additions & 2 deletions Dockerfile.openshift.rhel7
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.11 AS builder
WORKDIR /go/src/github.com/kubernetes-csi/external-snapshotter
COPY . .
RUN go build ./cmd/csi-snapshotter
RUN make build

FROM registry.svc.ci.openshift.org/ocp/4.0:base
COPY --from=builder /go/src/github.com/kubernetes-csi/external-snapshotter/csi-snapshotter /usr/bin/
COPY --from=builder /go/src/github.com/kubernetes-csi/external-snapshotter/bin/csi-snapshotter /usr/bin/
RUN useradd csi-snapshotter
USER csi-snapshotter
ENTRYPOINT ["/usr/bin/csi-snapshotter"]
1 change: 0 additions & 1 deletion OWNERS_ALIASES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ aliases:
- jsafrane
- tsmetana
- gnufied
- wongma7
- childsb
- bertinatto

0 comments on commit 09a381d

Please sign in to comment.