-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (38 loc) · 775 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
39
40
41
42
43
44
45
46
47
48
49
50
51
CLUSTER_NAME=views-k3d
lint:
@npx eslint .
style-check:
@npx prettier ./**/*.ts --check
style-write:
@npx prettier ./**/*.ts --write
dev:
@npm run dev
build:
@npm run build
docker-build:
@docker build -t views-service .
skaffold-dev:
@skaffold dev --port-forward
k3d-create:
@k3d cluster create ${CLUSTER_NAME} --servers 1
k3d-import:
@k3d image import -c ${CLUSTER_NAME} views-service:latest
k3d-apply:
@kubectl apply -f ./manifests/views.yaml
@kubectl apply -f ./manifests/redis.yaml
k3d-unapply:
@kubectl delete -f ./manifests/views.yaml
@kubectl delete -f ./manifests/redis.yaml
k3d-delete:
@k3d cluster delete ${CLUSTER_NAME}
.PHONY:
lint
style-check
build
docker-build
dev
k3d-create
k3d-apply
k3d-unapply
k3d-delete
skaffold-dev