-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_vnc_docker.sh
39 lines (38 loc) · 1.43 KB
/
run_vnc_docker.sh
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
#!/bin/bash
if [ $1 = "prim" ]
then
docker run \
--rm \
-p 5902:5900 \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
-v /dev/shm:/dev/shm \
-v /home/duke/sac_composition/mjkey/mjkey.txt:/root/.mujoco/mjkey.txt \
-v /home/duke/sac_composition/code/:/root/code/ \
-v /home/duke/sac_composition/robosuite/:/root/robosuite/ \
-v /home/duke/sac_composition/jacob_sac/:/root/jacob_sac/ \
-v /home/duke/sac_composition/rllab/:/root/rllab/ \
-v /home/owner/mujocoFiles/mujoco:/root/rllab/vendor/mujoco \
--env DISPLAY=$DISPLAY \
--env CUDA_VISIBLE_DEVICES=0 \
--runtime nvidia \
crl_vnc_sawyer
elif [ $1 = "comp" ]
then
docker run \
--rm \
-p 5902:5900 \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
-v /dev/shm:/dev/shm \
-v /home/duke/sac_composition/mjkey/mjkey.txt:/root/.mujoco/mjkey.txt \
-v /home/duke/sac_composition/code/:/root/code/ \
-v /home/duke/sac_composition/robosuite/:/root/robosuite/ \
-v /home/duke/sac_composition/crl_code/:/root/crl_code/ \
-v /home/duke/sac_composition/rllab/:/root/rllab/ \
-v /home/owner/mujocoFiles/mujoco:/root/rllab/vendor/mujoco \
--env DISPLAY=$DISPLAY \
--env CUDA_VISIBLE_DEVICES=0 \
--runtime nvidia \
crl_vnc_sawyer
else
echo need arg: comp or prim
fi