-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (27 loc) · 1.1 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
# ============================================================================ #
# HELPERS
# ============================================================================ #
## help: print this help message
help:
@echo "Usage:"
@sed -n "s/^##//p" ${MAKEFILE_LIST} | column -t -s ":" | sed -e "s/^/ /"
confirm:
@echo -n "Are you sure? [y/N] " && read ans && [ $${ans:-N} = y ]
# ============================================================================ #
# DEVELOPMENT
# ============================================================================ #
## k3d/registry: create a customized k3d-managed registries
k3d/registry: confirm
k3d registry create myregistry.localhost --port 12345
## k8s/cluster/up: create k8s cluster using k3d
k8s/cluster/up: confirm, k3d/registry
k3d cluster create --config ./k3d_config.yaml
## k8s/cluster/down: delete k8s cluster using k3d
k8s/cluster/down:
k3d cluster delete pgop-cluster
k3d registry delete k3d-myregistry.localhost
## run/api: run the cmd/api application
run/api:
# go run ./cmd/api -db-dsn=${SKEL_DB_DSN}
echo 'TODO'
.PHONY: help, confirm, k8s/cluster/up, run/api