forked from yearn/yearn-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (34 loc) · 1000 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
44
45
46
47
48
49
flags := --remove-orphans --detach
ifdef FLAGS
flags += $(FLAGS)
endif
dashboards_command := docker-compose --file services/dashboard/docker-compose.yml --project-directory .
tvl_command := docker-compose --file services/tvl/docker-compose.yml --project-directory .
dashboards-up:
$(dashboards_command) up $(flags)
dashboards-down:
$(dashboards_command) down
dashboards-build:
$(dashboards_command) build --no-cache
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 --no-cache
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