-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
31 lines (25 loc) · 1.14 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
docker/build:
docker build -t ot-postgres:local -f postgres/Dockerfile postgres/
docker build -t ot-api:local -f src/API/Dockerfile .
docker build -t ot-api-identity:local -f src/API.Identity/Dockerfile .
docker build -t ot-silo:local -f src/Silo/Dockerfile .
docker build -t ot-silo-dashboard:local -f src/Silo.Dashboard/Dockerfile .
# Second and third line are to enable metrics server
cluster/init:
kind create cluster --config=./kind-cluster.yaml
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.0/components.yaml
kubectl patch -n kube-system deployment metrics-server --type=json -p '[{"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--kubelet-insecure-tls"}]'
cluster/images:
-kind load docker-image \
ot-api:local \
ot-api-identity:local \
ot-silo:local \
ot-silo-dashboard:local \
ot-postgres:local
cluster/apply:
kubectl apply -f kubernetes
cluster/teardown:
kubectl delete secret --all
kubectl delete deployment --all
run: cluster/init docker/build cluster/images cluster/apply
restart: docker/build cluster/images cluster/teardown cluster/apply