-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
74 lines (71 loc) · 2 KB
/
docker-compose.yaml
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
version: '3.7'
services:
ui:
image: fogemulator/fogify-jupyter:v0.01
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
- .:/home/jovyan/work
ports:
- 8888:8888
environment:
- "REPLICATION=${REPLICATION}"
- "VARIANT=${VARIANT}"
- "NODES=${NODES}"
- "REPLICAS=${REPLICAS}"
- "BANDWIDTH=${BANDWIDTH}"
- "NETWORK_DELAY=${NETWORK_DELAY}"
- "YCSB_OPERATION_COUNT=${YCSB_OPERATION_COUNT}"
- "YCSB_RECORD_COUNT=${YCSB_RECORD_COUNT}"
- "YCSB_THREAD_COUNT=${YCSB_THREAD_COUNT}"
- "JUPYTER_ENABLE_LAB=yes"
- "GRANT_SUDO=yes"
user: root
controller:
image: fogemulator/fogify:v0.01 #name the image and give it a tag [name:tag]
entrypoint: [ "python", "/code/fogify/main.py", "--controller"]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
ports:
- 5000:5000
extra_hosts:
- ${MANAGER_NAME}:${MANAGER_IP}
environment:
- "CPU_FREQ=${CPU_FREQ}"
agent:
image: fogemulator/fogify:v0.01
entrypoint: [ "python", "/code/fogify/main.py", "--agent", "--agent-ip", "${HOST_IP}"]
extra_hosts:
- ${MANAGER_NAME}:${MANAGER_IP}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
- /proc/:/proc/
- /var/run/docker/:/var/run/docker/
- /sys/class/net/:/sys/class/net/
- /usr/bin/nsenter:/usr/bin/nsenter
- /lib/modules:/lib/modules
- /sbin/modprobe:/sbin/modprobe
privileged: true
cap_add:
- ALL
depends_on:
- cadvisor
- controller
ports:
- 5500:5500
environment:
CONTROLLER_IP: ${MANAGER_IP}
cadvisor:
image: gcr.io/google-containers/cadvisor:v0.35.0
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
ports:
- 9090:8080
expose:
- 8080