forked from sturdyfi/yearn-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (46 loc) · 2.12 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
flags := --remove-orphans --detach
ifdef FLAGS
flags += $(FLAGS)
endif
dashboards_command := docker-compose --file services/dashboard/docker-compose.yml --file services/dashboard/docker-compose.local.yml --project-directory .
tvl_command := docker-compose --file services/tvl/docker-compose.yml --project-directory .
test_command := docker-compose --file services/dashboard/docker-compose.test.yml --project-directory .
all_command := docker-compose --file services/dashboard/docker-compose.yml --project-directory .
dashboards-up:
$(dashboards_command) up $(flags)
dashboards-down:
$(dashboards_command) down
dashboards-build:
$(dashboards_command) build $(BUILD_FLAGS)
dashboards-clean-volumes:
$(dashboards_command) down -v
dashboards-clean-cache:
docker volume rm yearn-exporter_cache
tvl-up:
$(tvl_command) up $(flags)
tvl-down:
$(tvl_command) down
tvl-build:
$(tvl_command) build $(BUILD_FLAGS)
tvl-clean-volumes:
$(tvl_command) down -v
clean-volumes: dashboards-clean-volumes tvl-clean-volumes
dashboards: dashboards-up
tvl: tvl-up
up: dashboards-up
build: dashboards-build
down: dashboards-down
clean-cache: dashboards-clean-cache
clean-volumes: dashboards-clean-volumes
rebuild: down build up
scratch: clean-volumes build up
logs:
$(dashboards_command) logs -f -t eth-exporter historical-eth-exporter ftm-exporter historical-ftm-exporter treasury-exporter historical-treasury-exporter ftm-treasury-exporter historical-ftm-treasury-exporter sms-exporter historical-sms-exporter ftm-sms-exporter historical-ftm-sms-exporter transactions-exporter ftm-transactions-exporter
test:
$(test_command) up
all:
$(all_command) down && $(all_command) build --no-cache && $(all_command) up $(flags)
logs-all:
$(dashboards_command) logs -f -t eth-exporter historical-eth-exporter ftm-exporter historical-ftm-exporter treasury-exporter historical-treasury-exporter ftm-treasury-exporter historical-ftm-treasury-exporter sms-exporter historical-sms-exporter ftm-sms-exporter historical-ftm-sms-exporter transactions-exporter wallet-exporter ftm-transactions-exporter ftm-wallet-exporter
postgres:
$(dashboards_command) up -d --build postgres