-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (27 loc) · 1.25 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
KUBECTL_CMD := kubectl
.PHONY: all
all: db item catalog customer
.PHONY: db
db:
# kubectl delete deploy -n db --ignore-not-found app
docker build -t dnakano/microservice-handson/db:latest --file ./platform/db/Dockerfile .
kind load docker-image dnakano/microservice-handson/db:latest --name kind
kubectl apply -f ./platform/db/deployment.yaml
.PHONY: item
item:
# kubectl delete deploy -n item --ignore-not-found app
docker build -t dnakano/microservice-handson/item:latest --file ./services/item/Dockerfile .
kind load docker-image dnakano/microservice-handson/item:latest --name kind
kubectl apply -f ./services/item/deployment.yaml
.PHONY: customer
customer:
# kubectl delete deploy -n customer --ignore-not-found app
docker build -t dnakano/microservice-handson/customer:latest --file ./services/customer/Dockerfile .
kind load docker-image dnakano/microservice-handson/customer:latest --name kind
kubectl apply -f ./services/customer/deployment.yaml
.PHONY:
catalog:
# kubectl delete deploy -n catalog --ignore-not-found app
docker build -t dnakano/microservice-handson/catalog:latest --file ./services/catalog/Dockerfile .
kind load docker-image dnakano/microservice-handson/catalog:latest --name kind
kubectl apply -f ./services/catalog/deployment.yaml