You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1007 B
Makefile
24 lines
1007 B
Makefile
1 year ago
|
PYTHON ?= python3.11
|
||
|
KIND_KUBECONFIG ?= $(HOME)/.kube/config-kind.yaml
|
||
|
|
||
|
# Checks system dependencies needed to run the local dev environment
|
||
|
check-system-deps:
|
||
|
@echo "Checking system dependencies..."
|
||
|
@command -v $(PYTHON) > /dev/null || (echo "Python 3.11 is not installed."; exit 1)
|
||
|
@command -v kubectl > /dev/null || (echo "kubectl is not installed."; exit 1)
|
||
|
@command -v docker > /dev/null || (echo "Docker is not installed."; exit 1)
|
||
|
@command -v kind > /dev/null || (echo "Kind is not installed."; exit 1)
|
||
|
@command -v ctlptl version > /dev/null || (echo "ctlptl is not installed."; exit 1)
|
||
|
@command -v tilt > /dev/null || (echo "Tilt is not installed."; exit 1)
|
||
|
@command -v helm > /dev/null || (echo "Helm is not installed."; exit 1)
|
||
|
@echo "All required dependencies are installed."
|
||
|
|
||
|
start-local:
|
||
|
export KUBECONFIG=$(KIND_KUBECONFIG) ;\
|
||
|
ctlptl apply -f kind.yaml ;\
|
||
|
tilt up --context kind-kind-local
|
||
|
|
||
|
stop-local:
|
||
|
export KUBECONFIG=$(KIND_KUBECONFIG) ;\
|
||
|
tilt down --context kind-kind-local
|