-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (32 loc) · 939 Bytes
/
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
#!/usr/bin/env make -f
GRADLE = ./gradlew
.PHONY: deploy
deploy: deploy/postgresql deploy/kafka deploy/ftgo
.PHONY: deploy/postgresql
deploy/postgresql:
kubectl apply -f deployment/postgresql/postgresql-init.yaml
skaffold run -f deployment/postgresql/skaffold.yaml
.PHONY: deploy/kafka
deploy/kafka:
skaffold run -f deployment/kafka/skaffold.yaml
.PHONY: deploy/ftgo
deploy/ftgo:
skaffold run -f deployment/ftgo/skaffold.yaml
.PHONY: undeploy
undeploy: undeploy/postgresql undeploy/kafka undeploy/ftgo
.PHONY: undeploy/postgresql
undeploy/postgresql:
skaffold delete -f deployment/postgresql/skaffold.yaml
kubectl delete -f deployment/postgresql/postgresql-init.yaml
.PHONY: undeploy/kafka
undeploy/kafka:
skaffold delete -f deployment/kafka/skaffold.yaml
.PHONY: undeploy/ftgo
undeploy/ftgo:
skaffold delete -f deployment/ftgo/skaffold.yaml
.PHONY: build
build:
$(GRADLE) build
.PHONY: clean
clean:
$(GRADLE) clean