-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
34 lines (26 loc) · 972 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
all: grpc build start
.PHONY: all
grpc:
$(info Make: Transpiling gRPC and protobuf configs....)
@python3 -m grpc_tools.protoc -Iprotocol-buffers --python_out=collector --grpc_python_out=collector protocol-buffers/*.proto
@python3 -m grpc_tools.protoc -Iprotocol-buffers --python_out=navigator --grpc_python_out=navigator protocol-buffers/*.proto
@python3 -m grpc_tools.protoc -Iprotocol-buffers --python_out=web --grpc_python_out=web protocol-buffers/*.proto
@python3 -m grpc_tools.protoc -Iprotocol-buffers --python_out=trader --grpc_python_out=trader protocol-buffers/*.proto
build:
$(info Make: Building containers....)
@docker-compose build --no-cache
@make -s clean
start:
$(info Make: Starting containers....)
@docker-compose up -d
stop:
$(info Make: Stopping containers....)
@docker-compose stop
restart:
$(info Make: Restarting containers....)
@make -s stop
@make -s start
clean:
@docker system prune --volumes --force
rebuild:
@make build