-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·34 lines (32 loc) · 986 Bytes
/
run.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
#!/usr/bin/env bash
RUN_PROD=$1
if [ "$RUN_PROD" = "p" ]
then
echo "===> production"
docker run \
-ti \
--gpus all \
--device /dev/snd \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
--name simbotic-sim \
-e DISPLAY="${DISPLAY}" \
-e PULSE_SERVER=unix:"${XDG_RUNTIME_DIR}"/pulse/native \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v "${XDG_RUNTIME_DIR}"/pulse/native:"${XDG_RUNTIME_DIR}"/pulse/native \
simbotic-sim bash
else
echo "===> development"
docker run \
-ti \
--gpus all \
--device /dev/snd \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
--name simbotic \
-e DISPLAY="${DISPLAY}" \
-e PULSE_SERVER=unix:"${XDG_RUNTIME_DIR}"/pulse/native \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v "${XDG_RUNTIME_DIR}"/pulse/native:"${XDG_RUNTIME_DIR}"/pulse/native \
simbotic bash
fi