This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·80 lines (63 loc) · 1.72 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
SHELL := /bin/bash
.PHONY: k3d
k3d: run-k3d k3d-setup-k8
.PHONY: k3d-all
k3d-all: k3d mesh k3d-api
# Instrall and run k3d
.PHONY: run-k3d
run-k3d:
./scripts/scripts/k3d-install-and-run.sh
# Apply yaml files to k3d
.PHONY: k3d-setup-k8
k3d-setup-k8:
source ./scripts/scripts/kubeconfig-k3d.sh; \
./scripts/scripts/k3d-setup-k8.sh
# Apply mesh configs to k3d
.PHONY: mesh
mesh:
source ./scripts/scripts/kubeconfig-k3d.sh; \
./scripts/scripts/mesh-config.sh "k3d"
# Apply API related yaml files and json files to k3d
.PHONY: k3d-api
k3d-api:
source ./scripts/scripts/kubeconfig-k3d.sh; \
./scripts/scripts/k3d-setup-k8-api.sh; \
./scripts/scripts/mesh-api.sh "k3d"
.PHONY: dashboard
dashboard:
source ./scripts/scripts/kubeconfig-k3d.sh; \
./scripts/scripts/delete-dashboard-pod.sh
.PHONY: fix-control
fix-control:
source ./scripts/scripts/kubeconfig-k3d.sh;\
./scripts/scripts/fix-control-issue.sh
# Clean ports, delete k3d cluster, and empty acert folder.
.PHONY: clean
clean:
./scripts/scripts/clean-ports.sh; \
./scripts/scripts/clean-k3d.sh; \
./scripts/scripts/clean-acert.sh
# Deploy meshconfig to prod. You must have OIDC client ID and secret in your credential.sh file.
.PHONY: mesh-prod
mesh-prod:
source ./scripts/scripts/kubeconfig-aws.sh; \
./scripts/scripts/mesh-config.sh "prod"
./scripts/scripts/mesh-api.sh "prod"
.PHONY: new-api
new-api:
./scripts/scripts/new-api.sh
.PHONY: apply-api-prod
apply-api-prod:
./scripts/scripts/apply-new-api.sh "N"
.PHONY: apply-api
apply-api:
./scripts/scripts/apply-new-api.sh "Y"
.PHONY: delete-api
delete-api:
./scripts/scripts/delete-api.sh
.PHONY: new-csv
new-csv:
./scripts/scripts/new-csv.sh
.PHONY: novelcovid
novelcovid:
./scripts/makefile/update-novelcovid.sh