File tree 3 files changed +10
-9
lines changed
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ update:
11
11
docker-compose down
12
12
docker build -t pytorch_fl .
13
13
docker-compose up -d
14
- prepare :
15
- touch logs/client_8003.log
16
- touch logs/client_8004.log
17
- touch logs/main_server.log
18
- touch logs/secure_aggregator.log
14
+
15
+ del_logs :
16
+ tar -czvf logs_bak.tar.gz logs/* .log
17
+ rm logs/* .log
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ services:
22
22
- PORT=8001
23
23
volumes :
24
24
- ./logs:/code/logs:rw
25
+ - ./data/classification:/code/data/classification:rw
25
26
depends_on :
26
27
- main_server
27
28
@@ -36,6 +37,7 @@ services:
36
37
- N_CLIENT=0
37
38
volumes :
38
39
- ./logs:/code/logs:rw
40
+ - ./data/classification:/code/data/classification:rw
39
41
depends_on :
40
42
- secure_aggregator
41
43
@@ -50,6 +52,7 @@ services:
50
52
- N_CLIENT=1
51
53
volumes :
52
54
- ./logs:/code/logs:rw
55
+ - ./data/classification:/code/data/classification:rw
53
56
depends_on :
54
57
- secure_aggregator
55
58
Original file line number Diff line number Diff line change 2
2
3
3
if [ " $TYPE " = " CLIENT" ]; then
4
4
echo " Starting client"
5
- echo /code/logs/client_$PORT .log
6
- python client/app.py -p $PORT -n $N_CLIENT & > /code/logs/client_$PORT .log
5
+ python client/app.py -p $PORT -n $N_CLIENT
7
6
elif [[ " $TYPE " = " MAIN_SERVER" ]]; then
8
7
echo " Starting main server"
9
- python main_server/app.py -p $PORT & > /code/logs/main_server.log
8
+ python main_server/app.py -p $PORT
10
9
elif [[ " $TYPE " = " SECURE_AGGREGATOR" ]]; then
11
10
echo " Starting secure aggregator"
12
- python secure_aggregator/app.py -p $PORT & > /code/logs/secure_aggregator.log
11
+ python secure_aggregator/app.py -p $PORT
13
12
else
14
13
echo " Type not recognized"
15
14
fi
You can’t perform that action at this time.
0 commit comments