-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·58 lines (47 loc) · 1.99 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
SHELL := /bin/bash
PWD := $(shell pwd)
default: build
all:
docker-image:
docker build -f ./client-manager/Dockerfile -t "client-manager:latest" .
docker build -f ./filter-q1/Dockerfile -t "filter-q1:latest" .
docker build -f ./exchanger/Dockerfile -t "exchanger:latest" .
docker build -f ./filter-by-ladder/Dockerfile -t "filter-by-ladder:latest" .
docker build -f ./filter-matches-q3/Dockerfile -t "filter-matches-q3:latest" .
docker build -f ./filter-pro-players-q4/Dockerfile -t "filter-pro-players-q4:latest" .
docker build -f ./join-nodes-q3/Dockerfile -t "join-nodes-q3:latest" .
docker build -f ./group-by-nodes-q3/Dockerfile -t "group-by-nodes-q3:latest" .
docker build -f ./filter-matches-q4/Dockerfile -t "filter-matches-q4:latest" .
docker build -f ./join-nodes-q4/Dockerfile -t "join-nodes-q4:latest" .
docker build -f ./group-by-nodes-q4/Dockerfile -t "group-by-nodes-q4:latest" .
docker build -f ./final-accumulator-q3/Dockerfile -t "final-accumulator-q3:latest" .
docker build -f ./final-accumulator-q4/Dockerfile -t "final-accumulator-q4:latest" .
docker build -f ./group-by-nodes-q2/Dockerfile -t "group-by-nodes-q2:latest" .
docker build -f ./master/Dockerfile -t "master:latest" .
.PHONY: docker-image
rabbit-up:
docker-compose -f docker-compose-rabbit.yaml up -d --build
.PHONY: rabbit-up
rabbit-down:
docker-compose -f docker-compose-rabbit.yaml stop -t 5
docker-compose -f docker-compose-rabbit.yaml down
.PHONY: rabbit-down
rabbit-logs:
docker-compose -f docker-compose-rabbit.yaml logs -f
.PHONY: rabbit-logs
nodes-up: docker-image
docker-compose -f docker-compose-dev.yaml up -d --build
.PHONY: nodes-up
nodes-down:
docker-compose -f docker-compose-dev.yaml stop -t 5
docker-compose -f docker-compose-dev.yaml down
.PHONY: nodes-down
nodes-logs:
docker-compose -f docker-compose-dev.yaml logs -f
.PHONY: nodes-logs
nodes-restart:
make nodes-down; make nodes-up && make nodes-logs
.PHONY: nodes-restart
reset-persistance:
find persistance -type f -delete
.PHONY: reset-persistance