diff --git a/images/manila-csi-plugin/Dockerfile b/images/manila-csi-plugin/Dockerfile new file mode 100644 index 0000000000..b16d97c281 --- /dev/null +++ b/images/manila-csi-plugin/Dockerfile @@ -0,0 +1,10 @@ +FROM openshift/origin-release:golang-1.13 +COPY . /go/src/k8s.io/cloud-provider-openstack +RUN cd /go/src/k8s.io/cloud-provider-openstack && \ + go build -o manila-csi-plugin cmd/manila-csi-plugin/main.go + +FROM registry.svc.ci.openshift.org/ocp/4.2:base + +COPY --from=0 /go/src/k8s.io/cloud-provider-openstack/manila-csi-plugin /usr/bin/ + +ENTRYPOINT ["/usr/bin/manila-csi-plugin"] diff --git a/images/manila-csi-plugin/Dockerfile.openshift.ci b/images/manila-csi-plugin/Dockerfile.openshift.ci new file mode 100644 index 0000000000..e2962bb65a --- /dev/null +++ b/images/manila-csi-plugin/Dockerfile.openshift.ci @@ -0,0 +1,10 @@ +FROM openshift/origin-release:golang-1.13 +COPY . /go/src/k8s.io/cloud-provider-openstack +RUN cd /go/src/k8s.io/cloud-provider-openstack && \ + go build -o manila-csi-plugin cmd/manila-csi-plugin/main.go + +FROM registry.svc.ci.openshift.org/origin/4.2:base + +COPY --from=0 /go/src/k8s.io/cloud-provider-openstack/manila-csi-plugin /usr/bin/ + +ENTRYPOINT ["/usr/bin/manila-csi-plugin"]