-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (39 loc) · 1.16 KB
/
Makefile
File metadata and controls
50 lines (39 loc) · 1.16 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
namespace:
oc create --dry-run -f ./cluster/vega-namespace --dry-run -o yaml | oc apply -f -
.PHONY: namespace
dispatcher:
oc create --dry-run -f ./cluster/dispatcher --dry-run -o yaml | oc apply -f -
.PHONY: dispatcher
worker:
oc create --dry-run -f ./cluster/worker --dry-run -o yaml | oc apply -f -
.PHONY: worker
result-collector:
oc create -f ./cluster/result-collector --dry-run -o yaml | oc apply -f -
.PHONY: result-collector
janitor:
oc create -f ./cluster/janitor --dry-run -o yaml | oc apply -f -
.PHONY: janitor
apiserver:
oc process -f ./cluster/apiserver | oc apply -f -
.PHONY: apiserver
storage:
ifdef NFS_SERVER_IP
oc process -f ./cluster/storage/nfs-storage-template.yaml NFS_SEVER_IP=${NFS_SERVER_IP} | oc apply -f -
else
@echo "NFS_SERVER_IP variable must be specified."
endif
.PHONY: storage
deploy: storage dispatcher worker result-collector janitor apiserver redis
build:
go install -mod=mod ./cmd/...
.PHONY: build
unit:
go test -v -mod=mod ./...
.PHONY: unit
lint:
./hack/lint.sh
.PHONY: lint
.PHONY: protogen
protogen:
@go run github.com/bufbuild/buf/cmd/buf@v0.43.2 build
@go run github.com/bufbuild/buf/cmd/buf@v0.43.2 generate