-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (43 loc) · 1.03 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
## Build container
build:
@bash -x scripts/build.sh
## Push container
push:
@bash -x scripts/push.sh
## Build & Run Container
run:
@bash -x scripts/build.sh
@bash -x scripts/run.sh
## Build & Test
test:
@bash -x scripts/build.sh
@bash -x scripts/test.sh
## Run a shell in container locally for debugging
shell:
@bash -x scripts/shell.sh
## Deploy k8s
kube:
@bash -x scripts/k8s-delete.sh
@bash -x scripts/k8s-create.sh
## Deploy k8s
kubeD:
@bash -x scripts/k8s-delete.sh
## Deploy k8s
kubeC:
@bash -x scripts/k8s-create.sh
help:
@printf "Available make targets:\n\n"
@awk '/^[a-zA-Z\-\_0-9%:\\]+:/ { \
helpMessage = match(lastLine, /^## (.*)/); \
if (helpMessage) { \
helpCommand = $$1; \
helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \
gsub("\\\\", "", helpCommand); \
gsub(":+$$", "", helpCommand); \
printf " \x1b[32;01m%-35s\x1b[0m %s\n", helpCommand, helpMessage; \
} \
} \
{ lastLine = $$0 }' $(MAKEFILE_LIST) | sort -u
@printf "\n"
@printf "CLI Usage:\n\n"
@bash +x scripts/help.sh