forked from ferchosur/Practica-DevSecOps-HackLab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) · 590 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (17 loc) · 590 Bytes
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
KIND_CLUSTER ?= devsecops
.PHONY: kind-up kind-down build load helm deploy open
kind-up:
kind create cluster --name $(KIND_CLUSTER) --wait 120s
kind-down:
kind delete cluster --name $(KIND_CLUSTER)
build:
cd apps/00-safe-baseline && docker build -t demo-app:local .
load:
kind load docker-image demo-app:local --name $(KIND_CLUSTER)
helm:
helm upgrade --install demo charts/demo-app --set image.repository=demo-app --set image.tag=local --set service.type=NodePort
deploy: build load helm
open:
python3 - <<'PY'
import webbrowser; webbrowser.open('http://localhost:30080')
PY