forked from c3s-applications/helm-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (21 loc) · 1000 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
# Description: Makefile for ecde-helm-chart
-include .env
.ONESHELL:
expose-services:
kubectl --kubeconfig=$(KUBECONFIG) -n $(NAMESPACE) port-forward service/ecde-webapp 8080:80 & \
kubectl --kubeconfig=$(KUBECONFIG) -n $(NAMESPACE) port-forward service/ecde-api $(APISERVER_PORT):$(APISERVER_PORT) & \
kubectl --kubeconfig=$(KUBECONFIG) -n $(NAMESPACE) port-forward service/skinny-wms $(SKINNYWMS_PORT):$(SKINNYWMS_PORT) & \
echo "Press CTRL-C to stop port forwarding and exit the script"
wait
dev:
devspace --kubeconfig=$(KUBECONFIG) -n $(NAMESPACE) run-pipeline deploy
k9s:
k9s --kubeconfig=$(KUBECONFIG)
.env:
@echo "KUBECONFIG=./kubeconfig.yaml\nNAMESPACE=${USER}-ecde-dev\n\nAPISERVER_PORT=5000\nSKINNYWMS_PORT=5001" > $@
SILENT:
setup: .env
@echo "\e[1;32mDone!\e[0m\n\e[1;3;33mPlease edit the values in the '.env' file and then run 'make dev' to deploy the application\e[0m"
purge:
devspace --kubeconfig=$(KUBECONFIG) -n $(NAMESPACE) purge \
kubectl delete pv ${USER}-pv-wms