forked from sodafoundation/nbp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (23 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.PHONY: all build package csi.server.opensds csi.client.opensds flexvolume.server.opensds docker clean
all:build
build:csi.server.opensds csi.client.opensds flexvolume.server.opensds
package:
go get github.com/opensds/nbp/csi/server
go get github.com/opensds/nbp/csi/client
go get github.com/opensds/nbp/flexvolume/cmd/flex-plugin
csi.server.opensds:package
mkdir -p ./.output/
go build -o ./.output/csi.server.opensds github.com/opensds/nbp/csi/server
csi.client.opensds:package
mkdir -p ./.output/
go build -o ./.output/csi.client.opensds github.com/opensds/nbp/csi/client
flexvolume.server.opensds:package
mkdir -p ./.output/
go build -o ./.output/flexvolume.server.opensds github.com/opensds/nbp/flexvolume/cmd/flex-plugin
docker:build
cp ./.output/csi.server.opensds ./csi/server
cp ./.output/csi.client.opensds ./csi/client
docker build csi/server -t opensdsio/csiplugin:latest
docker build csi/client -t opensdsio/csipluginclient:latest
clean:
rm -rf ./.output/* ./csi/server/csi.server.opensds ./csi/client/csi.client.opensds