-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
61 lines (45 loc) · 1.2 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
ENV_FILE := .env
include ${ENV_FILE}
export $(shell sed 's/=.*//' ${ENV_FILE})
# NOTE: the actual commands here have to be indented by TABs
.PHONY: oc_login
oc_login:
ifdef OC_TOKEN
$(info **** Using OC_TOKEN for login ****)
oc login ${OC_URL} --token=${OC_TOKEN}
else
$(info **** Using OC_USER and OC_PASSWORD for login ****)
oc login ${OC_URL} -u ${OC_USER} -p ${OC_PASSWORD} --insecure-skip-tls-verify=true
endif
datagrid: oc_login
@$(MAKE) -C datagrid deploy
datagrid-undeploy: oc_login
./datagrid/teardown.sh
ai: oc_login
./ai/deploy.sh
ai-undeploy: oc_login
./ai/undeploy.sh
frontend: oc_login
./frontend/deploy.sh
frontend-undeploy: oc_login
./frontend/undeploy.sh
kafka-forwarder: oc_login
./kafka-forwarder/deploy.sh
kafka-forwarder-undeploy: oc_login
./kafka-forwarder/undeploy.sh
kafka-streams: oc_login
./kafka-streams/deploy.sh
kafka-streams-undeploy: oc_login
./kafka-streams/undeploy.sh
backend: oc_login
./backend/deploy.sh
./backend/leaderboard-service.sh
./backend/scoring-service.sh
backend-undeploy: oc_login
./backend/undeploy.sh
dashboard: oc_login
./dashboard/deploy.sh
dashboard-undeploy: oc_login
./dashboard/undeploy.sh
serverless: oc_login
./backend/kafkabroker.sh