Skip to content

Commit

Permalink
UPSTREAM: <carry>: Add OpenShift Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jsafrane committed Jun 7, 2019
1 parent 5d95704 commit a9cd2e1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile.openshift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM registry.svc.ci.openshift.org/openshift/release:golang-1.11 AS builder
WORKDIR /go/src/github.com/kubernetes-csi/node-driver-registrar
COPY . .
RUN go build ./cmd/csi-node-driver-registrar

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

FROM registry.svc.ci.openshift.org/ocp/4.0:base
COPY --from=builder /go/src/github.com/kubernetes-csi/node-driver-registrar/csi-node-driver-registrar /usr/bin/
RUN useradd csi-node-driver-registrar
USER csi-node-driver-registrar
ENTRYPOINT ["/usr/bin/csi-node-driver-registrar"]

0 comments on commit a9cd2e1

Please sign in to comment.