forked from enviodev/velodrome-indexer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (43 loc) · 990 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
50
51
52
53
.PHONY: start
start:
docker compose up --build -d
docker stats envio-indexer
.PHONY: start-hydra
start-hydra:
docker compose -f docker-compose-hydra.yaml up --build -d
docker stats envio-indexer
.PHONY: hard-stop
hard-stop:
docker compose down -v
make remove-generated
.PHONY: hard-stop-hydra
hard-stop-hydra:
docker compose -f docker-compose-hydra.yaml down -v
make remove-generated
.PHONY: remove-generated
remove-generated:
(rm -rf generated && rm -rf node_modules)
.PHONY: stop
stop:
docker compose down
.PHONY: hard-restart
hard-restart:
make hard-stop
make start
.PHONY: hard-restart-hydra
hard-restart-hydra:
make hard-stop-hydra
make start-hydra
.PHONY: restart
restart:
make stop
make start
.PHONY: hard-start
hard-start:
make remove-generated
make start
.PHONY: indexer-logs
indexer-logs:
docker logs envio-indexer -f
build-push-indexer:
docker buildx build -t "${TAG}" -f Dockerfile --platform ${ARCH} . --progress=plain; docker push "${TAG}"