From 4c5c638e26630f3dd371acb8cbe997f4ca295419 Mon Sep 17 00:00:00 2001 From: Mike Fedosin Date: Fri, 3 Jan 2020 12:31:52 +0100 Subject: [PATCH] Create Dockerfiles for manila-csi-plugin --- images/manila-csi-plugin/Dockerfile | 10 ++++++++++ images/manila-csi-plugin/Dockerfile.openshift.ci | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 images/manila-csi-plugin/Dockerfile create mode 100644 images/manila-csi-plugin/Dockerfile.openshift.ci 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"]