forked from openshift/vmware-vsphere-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.syncer.openshift
20 lines (19 loc) · 1.35 KB
/
Dockerfile.syncer.openshift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.16-openshift-4.10 AS builder
WORKDIR /go/src/github.com/kubernetes-sigs/vsphere-csi-driver
COPY . .
RUN make build # TODO: build only driver
FROM registry.ci.openshift.org/ocp/4.10:base
RUN mkdir -p config
ADD pkg/apis/cnsoperator/config/cns.vmware.com_cnsnodevmattachments.yaml /config/
ADD pkg/apis/cnsoperator/config/cns.vmware.com_cnsvolumemetadata.yaml /config/
ADD pkg/apis/cnsoperator/config/cnsfileaccessconfig_crd.yaml /config/
ADD pkg/apis/cnsoperator/config/cnsregistervolume_crd.yaml /config/
ADD pkg/apis/storagepool/config/cns.vmware.com_storagepools.yaml /config/
ADD pkg/internalapis/cnsoperator/config/cnsfilevolumeclient_crd.yaml /config/
ADD pkg/internalapis/cnsoperator/config/triggercsifullsync_crd.yaml /config/
ADD pkg/internalapis/cnsvolumeoperationrequest/config/cns.vmware.com_cnsvolumeoperationrequests.yaml /config/
ADD pkg/internalapis/csinodetopology/config/cns.vmware.com_csinodetopologies.yaml /config/
ADD pkg/internalapis/featurestates/config/cns.vmware.com_cnscsisvfeaturestates.yaml /config/
ADD pkg/apis/migration/config/cns.vmware.com_cnsvspherevolumemigrations.yaml /config/
COPY --from=builder /go/src/github.com/kubernetes-sigs/vsphere-csi-driver/.build/bin/syncer.linux_amd64 /usr/bin/vmware-vsphere-csi-driver-syncer
ENTRYPOINT ["/usr/bin/vmware-vsphere-csi-driver-syncer"]