-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
42 lines (41 loc) · 1.37 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
version: "3.9"
services:
robonet:
image: robonet-base
container_name: robonet_$USER
build:
context: widowx_envs
entrypoint: ./widowx_envs/scripts/run.sh
environment:
- DISPLAY=:0
user: robonet:1002
stdin_open: true
tty: true
device_cgroup_rules:
- 'c *:* rmw'
network_mode: host
runtime: nvidia
volumes:
- ${USB_CONNECTOR_CHART:-/dev/null}:/tmp/camera_connector_chart
# if you want to be able to edit widowx_envs code without rebuilding the image, this
# overwrites the widowx_envs directory that was copied in at build time
- ./experiments:/home/robonet/experiments
- /media/harddrive/:/home/robonet/trainingdata # TODO (YL): better way to mount a local directory
# $HOME/widowx_data:/home/robonet/trainingdata
- ./widowx_envs:/home/robonet/widowx_envs
- /dev:/dev # for host tty access
bridge_data_v2:
image: robonet-bridge-data-v2
container_name: robonet_${USER}_bridge_data_v2
user: robonet:1002
build:
context: code/bridge_data_v2
network_mode: host
environment:
- WANDB_API_KEY=putwandbkeyhere
runtime: nvidia
volumes:
- ./widowx_envs:/home/robonet/widowx_envs
- ./code/bridge_data_v2:/home/robonet/code/bridge_data_v2
- ./experiments:/home/robonet/experiments
- /mount/harddrive/:/home/robonet/trainingdata