-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
103 lines (83 loc) · 2.44 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
SHELL := /bin/bash
.DEFAULT_GOAL := help
.PHONY: help
## help: Makefile: Prints this help message
help:
@echo "Usage:"
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
.PHONY: up
## up: Docker compose: Start everything (blocking)
up:
docker compose up --abort-on-container-exit
.PHONY: upd
## upd: Docker compose: Start everything (detached)
upd:
docker compose up -d
.PHONY: down
## down: Docker compose: Stop everything
down:
docker compose down
.PHONY: clean
## clean: Docker compose: Stop everything and remove volumes
clean:
docker compose down --volumes
.PHONY: monitoring
## monitoring: Docker compose: Start only Prometheus, Loki & Grafana
monitoring:
docker compose up grafana --abort-on-container-exit
.PHONY: daml
## daml: Docker compose: Start only Postgres, Canton & HTTP JSON API
daml:
docker compose up http-json -d
.PHONY: prom
## prom: Prometheus: Access Web UI
prom:
$$(command -v xdg-open || command -v open) http://localhost:9090/
.PHONY: prom-reload
## prom-reload: Prometheus: Reload configuration
prom-reload:
docker exec -it daml_observability_prometheus-1 kill -HUP 1
.PHONY: prom-restart
## prom-restart: Prometheus: Restart
prom-restart:
docker compose restart prometheus
.PHONY: prom-logs
## prom-logs: Prometheus: Follow logs (blocking)
prom-logs:
docker logs -f daml_observability_prometheus
.PHONY: grafana
## grafana: Grafana: Access Web UI
grafana:
$$(command -v xdg-open || command -v open) http://localhost:3000/
.PHONY: grafana-restart
## grafana-restart: Grafana: Restart
grafana-restart:
docker compose restart grafana
.PHONY: grafana-logs
## grafana-logs: Grafana: Follow logs (blocking)
grafana-logs:
docker logs -f daml_observability_grafana
.PHONY: console
## console: Canton: Open Console
console:
docker exec -it daml_observability_canton_console bin/canton -c /canton/config/console.conf
.PHONY: debug
## debug: Canton: Open Shell
debug:
docker exec -it daml_observability_canton_console /bin/bash
.PHONY: canton-restart
## canton-restart: Canton: Restart
canton-restart:
docker compose restart canton
.PHONY: canton-logs
## canton-logs: Canton: Follow logs (blocking)
canton-logs:
docker logs -f daml_observability_canton
.PHONY: http-json-restart
## http-json-restart: HTTP JSON API: Restart
http-json-restart:
docker compose restart http-json
.PHONY: http-json-logs
## http-json-logs: HTTP JSON API: Follow logs (blocking)
http-json-logs:
docker logs -f daml_observability_http_json