-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (40 loc) · 1.37 KB
/
Makefile
File metadata and controls
48 lines (40 loc) · 1.37 KB
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
.PHONY: generate workload run setup gsts clean compile_grpc_python coordinator
generate:
@python3 ./generator.py
workload:
@python3 ./generate_workload.py
satellites:
@sh ./temp/run-nodes.sh
setup: generate coordinator
gsts:
@! docker ps -a | grep gsts || docker container rm gsts -f
@docker build -f ./gsts/gsts.Dockerfile -t gsts .
@docker run -it \
--name gsts \
--network=fredwork \
--ip=172.26.8.4 \
gsts
clean:
@sh temp/clean.sh
compile_grpc_python:
@python3 -m grpc_tools.protoc -I . --python_out=. --grpc_python_out=. ./satellite/proto/client.proto
coordinator:
# Run the coordinator and the simulation
@docker network create fredwork --gateway 172.26.0.1 --subnet 172.26.0.0/16 || true
@! docker ps -a | grep coordinator || docker container rm coordinator -f
@mkdir -p output/frames
@rm -rf output/frames/*
@docker build -f ./coordinator/coordinator.Dockerfile -t coordinator .
@docker run -it \
--name coordinator \
-v $(CURDIR)/common/cert/keygroupPasser.crt:/common/cert/client.crt \
-v $(CURDIR)/common/cert/keygroupPasser.key:/common/cert/client.key \
-v $(CURDIR)/common/cert/ca.crt:/cert/ca.crt \
-v $(CURDIR)/temp/freds.json:/nodes.json \
-v $(CURDIR)/output/:/output \
-v $(CURDIR)/satellite/proto:/proto \
-v $(CURDIR)/temp/:/temp \
-v $(CURDIR)/config.toml:/config.toml \
--network=fredwork \
--ip=172.26.4.1 \
coordinator