Added scripts for running gui applications in docker on ubuntu.

This commit is contained in:
Derek Witcpalek
2020-03-25 19:07:49 -04:00
parent fd2039e610
commit 927be9269d
10 changed files with 27 additions and 0 deletions

1
src/gazebo/build.sh Executable file
View File

@@ -0,0 +1 @@
docker image build . -t eecs467:rrrobot

View File

@@ -0,0 +1,7 @@
#docker run -i -h rrrobot-env -t eecs467:rrrobot bash
#xhost +local:docker
#docker run -it --privileged --security-opt seccomp=unconfined -v $SSH_AUTH_SOCK:/ssh-agent --env SSH_AUTH_SOCK=/ssh-agent --device=/dev/dri:/dev/dri -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --env QT_X11_NO_MITSHM=1 -h rrrobot-env eecs467:rrrobot
#xhost -local:docker
../run_rrrobot_image.sh

1
src/ros-dev/build.sh Executable file
View File

@@ -0,0 +1 @@
docker image build . --rm -t eecs467:rrrobot

View File

@@ -0,0 +1 @@
../run_rrrobot_image.sh

1
src/ros-turtlesim/build.sh Executable file
View File

@@ -0,0 +1 @@
docker image build . --rm -t eecs467:rrrobot

View File

@@ -0,0 +1,5 @@
#docker run -i -h rrrobot-env -t eecs467:rrrobot bash
xhost +local:docker #rrrobot-env
docker run -it --rm --privileged --device=/dev/dri:/dev/dri -e DISPLAY=$DISPLAY -v $PWD:/app -v /tmp/.X11-unix:/tmp/.X11-unix -h rrrobot-env eecs467:rrrobot
xhost -local:docker #rrrobot-env

0
src/ros-turtlesim/turtlesim.sh Normal file → Executable file
View File

1
src/ros/build.sh Executable file
View File

@@ -0,0 +1 @@
docker image build . --rm -t eecs467:rrrobot

5
src/ros/run_rrrobot_image.sh Executable file
View File

@@ -0,0 +1,5 @@
#docker run -i -h rrrobot-env -t eecs467:rrrobot bash
#docker run -it --rm --security-opt seccomp=unconfined -v $SSH_AUTH_SOCK:/ssh-agent --env SSH_AUTH_SOCK=/ssh-agent --device=/dev/dri:/dev/dri -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --env QT_X11_NO_MITSHM=1 -h rrrobot-env eecs467:rrrobot
../run_rrrobot_image.sh

5
src/run_rrrobot_image.sh Executable file
View File

@@ -0,0 +1,5 @@
#docker run -i -h rrrobot-env -t eecs467:rrrobot bash
xhost +local:docker #rrrobot-env
docker run -it --rm --device=/dev/input/event4 --device=/dev/dri:/dev/dri -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -h rrrobot-env eecs467:rrrobot
xhost -local:docker #rrrobot-env