-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (33 loc) · 997 Bytes
/
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
.PHONY: submodule
submodule:
git submodule update --init --recursive
.PHONY: update-bifrost-subql
update-bifrost-subql:
cd bifrost-subql && git checkout monitor && git pull
.PHONY: build
build:
cd bifrost-subql && rm -rf dist && yarn && yarn codegen && yarn build
.PHONY: run
run:
docker-compose -f docker-compose.yml -f bifrost-subql/docker-compose-monitor.yml up -d
.PHONY: init-monitor-sql
init-monitor-sql:
sh ./postgresql/init.sh
.PHONY: sleep
sleep:
sleep 10s
.PHONY: init
init:
make run && make sleep && make init-monitor-sql
.PHONY: stop
stop:
docker-compose -f docker-compose.yml -f bifrost-subql/docker-compose-monitor.yml down
.PHONY: run-full
run-full:
docker-compose -f docker-compose.yml -f docker-compose-elasticsearch-pgsync.yml -f bifrost-subql/docker-compose-monitor.yml up -d
.PHONY: start-full
start-full:
make run-full && make sleep && make init-monitor-sql
.PHONY: reset-grafana
reset-grafana:
docker-compose stop grafana && docker-compose up -d grafana