-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
78 lines (77 loc) · 1.5 KB
/
docker-compose.yml
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
67
68
69
70
71
72
73
74
75
76
77
78
version: "2.4"
services:
achal01:
hostname: achal01
build:
context: .
network: host
networks:
app_net:
ipv4_address: 198.162.55.144
cap_add:
- SYS_NICE
achal02:
hostname: achal02
build:
context: .
network: host
networks:
app_net:
ipv4_address: 198.162.55.145
cap_add:
- SYS_NICE
achal03:
hostname: achal03
build:
context: .
network: host
networks:
app_net:
ipv4_address: 198.162.55.146
cap_add:
- SYS_NICE
achal04:
hostname: achal04
build:
context: .
network: host
networks:
app_net:
ipv4_address: 198.162.55.147
cap_add:
- SYS_NICE
client:
hostname: client
build:
context: .
network: host
dockerfile: Dockerfile.client
networks:
app_net:
ipv4_address: 198.162.55.128
volumes:
- "./logging:/root/logging"
- "./paper:/root/paper"
command: |-
bash -c '
echo "" > /root/.ssh/known_hosts;
for i in 1 2 3 4; do
while ! ssh achal0$${i} echo achal0$${i} is up;
do
sleep 1;
done;
done;
sleep 3;
rm -rf logging/*;
CONTAINER_MODE=true bash run_ivp_2.sh;
bash plot_ivp_2.sh;
echo Experiment Done!;
tail -f /dev/null;
'
networks:
app_net:
driver: bridge
ipam:
config:
- subnet: 198.162.55.0/24
gateway: 198.162.55.1