-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
62 lines (49 loc) · 1.39 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
62
SHELL := /bin/bash
.PHONY: k8s_synth
k8s_synth:
(cd k8s && source ${HOME}/.nvm/nvm.sh && nvm use && npm run synth)
.PHONY: k8s_install
k8s_install:
(cd k8s && source ${HOME}/.nvm/nvm.sh && nvm use && npm ci)
.PHONY: k8s_test
k8s_test:
(cd k8s && source ${HOME}/.nvm/nvm.sh && nvm use && npm run test)
.PHONY: k8s_test_update
k8s_test_update:
(cd k8s && source ${HOME}/.nvm/nvm.sh && nvm use && npm run test -- -u)
.PHONY: k8s_pretty
k8s_pretty:
(cd k8s && source ${HOME}/.nvm/nvm.sh && nvm use && npm run prettier)
.PHONY: init
init:
kubectl create namespace licensing || true
skaffold run --cleanup=false --profile init
.PHONY: run-api
run-api:
skaffold dev --profile run-api
.PHONY: create-db
create-db:
skaffold run --cleanup=false --profile create-db
.PHONY: pg-port-forward
pg-port-forward:
kubectl port-forward service/licensing-db 5433:5432 -n licensing
.PHONY: run-migration
run-migration:
skaffold run --cleanup=false --profile run-migration
.PHONY: run-event-export
run-event-export:
skaffold run --cleanup=false --profile run-event-export
.PHONY: start
start:
make init
make create-db
make run-migration
kubectl wait --for=condition=complete --timeout=120s --namespace=licensing job/licensing-migration
make run-event-export
make run-api
.PHONY: delete
delete:
skaffold delete -p init
skaffold delete -p run-api
skaffold delete -p create-db
skaffold delete -p run-event-export