-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 1.02 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
.PHONY: help
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
build-worker: ## Build the worker
docker build -t worker:latest worker/
build-server: ## Build the server
docker build -t server:latest server/
build-scheduler: ## Build the scheduler
docker build -t scheduler:latest scheduler/
build: build-worker build-server build-scheduler ## Build the images
apply: ## Deploy the manifests
kubectl apply -f server/Manifest.yaml
kubectl apply -f scheduler/Manifest.yaml
kubectl apply -f prometheus/ConfigMap.yaml
kubectl apply -f prometheus/Manifest.yaml
all: build apply
delete:
-kubectl delete cronjobs.batch scheduler
-kubectl delete jobs.batch -l jobgroup=worker-group
-kubectl delete deployments.apps server-deployment
clean:
-kubectl delete -f server/Manifest.yaml
-kubectl delete -f scheduler/Manifest.yaml
-kubectl delete -f prometheus/Manifest.yaml
-kubectl delete jobs.batch -l jobgroup=worker-group