forked from odigos-io/odigos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (52 loc) · 2.03 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
.PHONY: build-odiglet
build-odiglet:
docker build -t keyval/odigos-odiglet:$(TAG) . -f odiglet/Dockerfile
.PHONY: build-autoscaler
build-autoscaler:
docker build -t keyval/odigos-autoscaler:$(TAG) . --build-arg SERVICE_NAME=autoscaler
.PHONY: build-images
build-images:
make build-autoscaler TAG=$(TAG)
docker build -t keyval/odigos-scheduler:$(TAG) . --build-arg SERVICE_NAME=scheduler
make build-odiglet TAG=$(TAG)
docker build -t keyval/odigos-instrumentor:$(TAG) . --build-arg SERVICE_NAME=instrumentor
.PHONY: push-images
push-images:
docker push keyval/odigos-autoscaler:$(TAG)
docker push keyval/odigos-scheduler:$(TAG)
docker push keyval/odigos-instrumentor:$(TAG)
docker push keyval/odigos-odiglet:$(TAG)
.PHONY: load-to-kind-odiglet
load-to-kind-odiglet:
kind load docker-image keyval/odigos-odiglet:$(TAG)
.PHONY: load-to-kind-autoscaler
load-to-kind-autoscaler:
kind load docker-image keyval/odigos-autoscaler:$(TAG)
.PHONY: load-to-kind
load-to-kind:
make load-to-kind-autoscaler TAG=$(TAG)
kind load docker-image keyval/odigos-scheduler:$(TAG)
make load-to-kind-odiglet TAG=$(TAG)
kind load docker-image keyval/odigos-instrumentor:$(TAG)
.PHONY: restart-odiglet
restart-odiglet:
kubectl rollout restart daemonset odiglet -n odigos-system
.PHONY: restart-autoscaler
restart-autoscaler:
kubectl rollout restart deployment odigos-autoscaler -n odigos-system
.PHONY: deploy-odiglet
deploy-odiglet:
make build-odiglet TAG=$(TAG) && make load-to-kind-odiglet TAG=$(TAG) && make restart-odiglet
.PHONY: deploy-autoscaler
deploy-autoscaler:
make build-autoscaler TAG=$(TAG) && make load-to-kind-autoscaler TAG=$(TAG) && make restart-autoscaler
.PHONY: debug-odiglet
debug-odiglet:
docker build -t keyval/odigos-odiglet:$(TAG) . -f odiglet/debug.Dockerfile
kind load docker-image keyval/odigos-odiglet:$(TAG)
kubectl delete pod -n odigos-system -l app=odiglet
kubectl wait --for=condition=ready pod -n odigos-system -l app=odiglet
kubectl port-forward -n odigos-system daemonset/odiglet 2345:2345
,PHONY: e2e-test
e2e-test:
./e2e-test.sh