generated from camunda-community-hub/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (51 loc) · 2.17 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
### Kind Dev environment
setup-kind:
kind create cluster --name hackdays --config deploy/local/kind-cluster.yaml
deploy-stack:
$(MAKE) deploy-metrics-server
## Needs to be run multiplce times due to CRDs
$(MAKE) deploy-monitoring
sleep 5
$(MAKE) deploy-monitoring
# Exchange with deploy without build
$(MAKE) -C camunda-scaling-operator deploy-test-env
$(MAKE) deploy-camunda
deploy-camunda:
kustomize build --enable-helm ./deploy/local/camunda | kubectl apply -f - && \
kubectl delete pod camunda-platform-operate-test-connection # unnecessary connection test
## Needs to be run twice due to CRDs
deploy-monitoring:
kustomize build --enable-helm ./deploy/local/monitoring | kubectl apply --server-side -f -
deploy-metrics-server:
kustomize build ./deploy/local/metrics-server | kubectl apply --server-side -f -
deploy-keda:
kustomize build ./deploy/local/keda | kubectl apply --server-side -f -
deploy-demo:
kubectl apply -f ./deploy/local/demo
deploy-worker-keda:
kubectl apply -f ./deploy/local/keda/worker
undeploy-camunda:
kustomize build --enable-helm ./deploy/local/camunda | kubectl delete -f -
undeploy-demo:
kubectl delete -f ./deploy/local/demo
undeploy-keda:
kustomize build --enable-helm ./deploy/local/keda | kubectl delete -f -
teardown:
kind delete cluster --name hackdays
### Demo stuff
demo-app:
cd ./demo/app && mvn package -Ddocker.goal=dockerBuild
demo-exporter:
cd demo/exporter && \
mvn package -DskipTests -DskipChecks -T1C && \
docker build -t "ghcr.io/sijoma/camunda-autoscaling-hackday/job-metric-exporter:SNAPSHOT" .
deploy-demo-kind:
kind load docker-image ghcr.io/sijoma/camunda-autoscaling-hackday/starter:SNAPSHOT --name hackdays
kind load docker-image ghcr.io/sijoma/camunda-autoscaling-hackday/worker:SNAPSHOT --name hackdays
kind load docker-image ghcr.io/sijoma/camunda-autoscaling-hackday/job-metric-exporter:SNAPSHOT --name hackdays
kind load docker-image camunda/zeebe:8.6.0 --name hackdays
helmfile -f demo/deployment/helmfile.yaml apply
deploy-operator:
cd camunda-scaling-operator/deploy/local && \
kustomize edit set image controller=ghcr.io/sijoma/camunda-scaling-operator:v0.0.3 && \
kustomize build . | kubectl apply -f -