diff --git a/images/Dockerfile b/images/Dockerfile new file mode 100644 index 00000000..3af3386e --- /dev/null +++ b/images/Dockerfile @@ -0,0 +1,12 @@ +FROM openshift/origin-release:golang-1.13 +COPY . /go/src/github.com/openshift/csi-driver-nfs +RUN cd /go/src/github.com/openshift/csi-driver-nfs && \ + go build -o /go/src/github.com/openshift/csi-driver-nfs/nfsplugin cmd/nfsplugin/main.go + +FROM registry.svc.ci.openshift.org/ocp/4.2:base + +COPY --from=0 /go/src/github.com/openshift/csi-driver-nfs/nfsplugin /usr/bin/ + +RUN yum -y install nfs-utils && yum -y install jq && yum clean all + +ENTRYPOINT ["/usr/bin/nfsplugin"] diff --git a/images/Dockerfile.openshift.ci b/images/Dockerfile.openshift.ci new file mode 100644 index 00000000..c4b1aeb0 --- /dev/null +++ b/images/Dockerfile.openshift.ci @@ -0,0 +1,12 @@ +FROM openshift/origin-release:golang-1.13 +COPY . /go/src/github.com/openshift/csi-driver-nfs +RUN cd /go/src/github.com/openshift/csi-driver-nfs && \ + go build -o /go/src/github.com/openshift/csi-driver-nfs/nfsplugin cmd/nfsplugin/main.go + +FROM registry.svc.ci.openshift.org/origin/4.2:base + +COPY --from=0 /go/src/github.com/openshift/csi-driver-nfs/nfsplugin /usr/bin/ + +RUN yum -y install nfs-utils && yum -y install jq && yum clean all + +ENTRYPOINT ["/usr/bin/nfsplugin"]