-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (26 loc) · 984 Bytes
/
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
.SILENT:
help:
{ grep --extended-regexp '^[a-zA-Z_-]+:.*#[[:space:]].*$$' $(MAKEFILE_LIST) || true; } \
| awk 'BEGIN { FS = ":.*#[[:space:]]*" } { printf "\033[1;32m%-22s\033[0m%s\n", $$1, $$2 }'
setup: # install eksctl + kubectl + yq, create aws user + ecr repository
./make.sh setup
dev: # local development (by calling npm script directly)
./make.sh dev
test: # run tests (by calling npm script directly)
./make.sh test
build: # build the production image
./make.sh build
run: # run the built production image on localhost
./make.sh run
rm: # remove the running container
./make.sh rm
cluster-create: # create the EKS cluster
./make.sh cluster-create
cluster-create-config: # create kubectl EKS configuration
./make.sh cluster-create-config
cluster-apply-config: # apply kubectl EKS configuration
./make.sh cluster-apply-config
cluster-elb: # get the cluster ELB URL
./make.sh cluster-elb
cluster-delete: # delete the EKS cluster
./make.sh cluster-delete