-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (52 loc) · 2.07 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
SHELL := /bin/bash
PWD := $(shell pwd)
GIT_REMOTE = github.com/7574-sistemas-distribuidos/docker-compose-init
default: build
all:
deps:
go mod tidy
go mod vendor
build: deps
GOOS=linux go build -o bin/client github.com/7574-sistemas-distribuidos/docker-compose-init/client
.PHONY: build
blockchain:
docker build -f ./blockchain/Dockerfile -t "blockchain:latest" .
.PHONY: blockchain
docker-image:
docker build -f ./monitor/Dockerfile -t "monitor:latest" .
docker build -f ./filter_avg_rating_server_duration/Dockerfile -t "filter_avg_rating_server_duration:latest" .
docker build -f ./group_by/Dockerfile -t "group_by:latest" .
docker build -f ./reducer_group_by/Dockerfile -t "reducer_group_by:latest" .
docker build -f ./filter_solo_winner_player/Dockerfile -t "filter_solo_winner_player:latest" .
docker build -f ./filter_ladder_map_mirror/Dockerfile -t "filter_ladder_map_mirror:latest" .
docker build -f ./broadcaster/Dockerfile -t "broadcaster:latest" .
docker build -f ./players_cleaner/Dockerfile -t "players_cleaner:latest" .
docker build -f ./filter_rating/Dockerfile -t "filter_rating:latest" .
docker build -f ./join/Dockerfile -t "join:latest" .
docker build -f ./reducer_join/Dockerfile -t "reducer_join:latest" .
docker build -f ./winner_rate_calculator/Dockerfile -t "winner_rate_calculator:latest" .
docker build -f ./top_civ_calculator/Dockerfile -t "top_civ_calculator:latest" .
docker build -f ./interface/Dockerfile -t "interface:latest" .
.PHONY: docker-image
docker-compose-up: docker-image
docker-compose -f docker-compose.yml up --build --remove-orphans
.PHONY: docker-compose-up
docker-compose-down:
docker-compose -f docker-compose.yml stop -t 1
docker-compose -f docker-compose.yml down
.PHONY: docker-compose-down
docker-compose-logs:
docker-compose -f docker-compose.yml logs -f
.PHONY: docker-compose-logs
clean-storage:
sudo rm -rf storage
mkdir storage
.PHONY: clean-storage
restart:
make docker-compose-down
make clean-storage
make docker-compose-up
.PHONY: restart
docker-compose-file:
python3 writer_docker_compose.py
.PHONY: docker-compose-file