-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·86 lines (72 loc) · 1.98 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
BUILD=$(shell ./scripts/build.sh)
CLEAN=$(shell ./scripts/clean.sh)
MASTER=$(shell ./scripts/master.sh)
WORKER=$(shell ./scripts/worker.sh)
WORKER_PREPARE=$(shell ./scripts/worker_prepare.sh)
TESTPOD=$(shell ./scripts/testPod.sh)
TESTSERVICE=$(shell ./scripts/testService.sh)
TESTGATEWAY=$(shell ./scripts/testGateway.sh)
TESTRS=$(shell ./scripts/testRS.sh)
TESTSTRESS=$(shell ./scripts/testStress.sh)
TESTGPU=$(shell ./scripts/testGpu.sh)
TESTSERVERLESS=$(shell ./scripts/testServerless.sh)
TESTCONSISTENCY=$(shell ./scripts/testConsistency.sh)
TESTMICROSERVICE=$(shell ./scripts/testMicroService.sh)
# Build k8s but not run
.PHONY:build
build:
@echo $(BUILD)
# Build k8s and run as master and worker
.PHONY:master
master:
@echo $(CLEAN)
@echo $(BUILD)
@echo $(WORKER_PREPARE)
@echo $(MASTER)
@echo $(WORKER)
# Build k8s and run as worker
.PHONY:worker
worker:
@echo $(CLEAN)
@echo $(BUILD)
@echo $(WORKER_PREPARE)
@echo $(WORKER)
# Build k8s, run a master, a worker, a Pod on one host
.PHONY:testPod
testPod:
@echo $(TESTPOD)
# Build k8s, run a master, a worker, a Pod, a Service on one host
.PHONY:testService
testService:
@echo $(TESTSERVICE)
# Build k8s, run a master, a worker, a Pod, a Service, a Gateway on one host
.PHONY:testGateway
testGateway:
@echo $(TESTGATEWAY)
.PHONY:testConsistency
testConsistency:
@echo $(TESTCONSISTENCY)
# Build k8s, run a master, a worker, a RS, a Service on one host
.PHONY:testRS
testRS:
@echo $(TESTRS)
# Build k8s, run a master, a worker, a Stress Pod on one host
.PHONY:testStress
testStress:
@echo $(TESTSTRESS)
# Build k8s, run a master, a worker, a Gpu Job on one host
.PHONY:testGpu
testGpu:
@echo $(TESTGPU)
# Build k8s, run a master, a worker, a serverless test on one host
.PHONY:testServerless
testServerless:
@echo $(TESTSERVERLESS)
# Build k8s, run a master, a worker, a microservice test on one host
.PHONY:testMicroService
testMicroService:
@echo $(TESTMICROSERVICE)
# Stop k8s and clear k8s states
.PHONY:clean
clean:
@echo $(CLEAN)