forked from chronosphereio/demo-deeplinking-metrics-traces
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (31 loc) · 1.24 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
build_hotrod:
cd jaeger-example && make hotrod-docker && \
docker tag jaeger-example:latest jaeger-example:exemplars-demo
build_prometheus:
cd prometheus && GOOS=linux GOARCH=amd64 make build && mkdir -p .build/linux-amd64 && \
mv ./prometheus ./.build/linux-amd64/prometheus && mv ./promtool ./.build/linux-amd64/promtool && make docker
build_m3:
cd m3 && docker build -t m3dbnode:exemplars-demo -f ./docker/m3dbnode/Dockerfile .
build_grafana:
cd grafana && make build-docker-full && \
docker tag grafana/grafana:dev grafana/grafana:exemplars-demo
build_all: build_hotrod build_prometheus build_m3 build_grafana
docker_start:
cd docker && docker-compose up -d --renew-anon-volumes
docker_stop:
cd docker && docker-compose down
m3_namespace_setup:
while true; do curl --fail -X POST http://localhost:7201/api/v1/database/create -d '{ \
"type": "local", \
"namespaceName": "default", \
"retentionTime": "2h" \
}'; if [ "$$?" = "0" ]; then break; fi; echo Failed will retry; sleep 2; echo Retrying namespace setup; done
init:
git submodule update --init --recursive
app_start: docker_start m3_namespace_setup
app_stop: docker_stop
start: init build_all app_start
stop: docker_stop
clean:
docker container prune -f
docker volume prune -f