Add Dockerfiles for openshift ci

This commit is contained in:
Mike Fedosin 2020-03-04 10:27:04 +01:00
parent 6ae07eef68
commit df723b95be
2 changed files with 24 additions and 0 deletions

12
images/Dockerfile Normal file
View File

@ -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"]

View File

@ -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"]