diff --git a/docker/docker.md b/docker/docker.md new file mode 100644 index 0000000..421b7b4 --- /dev/null +++ b/docker/docker.md @@ -0,0 +1,9 @@ +# How to start iBTC with Docker +Docker makes it easy to use to run iBTC. + + +## Docker +* Just run! +``` +sh run_ibtc.sh +``` diff --git a/docker/run_ibtc.sh b/docker/run_ibtc.sh new file mode 100644 index 0000000..179e794 --- /dev/null +++ b/docker/run_ibtc.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# download docker image +docker pull cokr6901/ibtc:v1.0 + +# visualization +xhost + + +# run container +docker run --privileged \ + -it --name ibtc --ipc=host --shm-size=512M \ + --device=/dev/video0:/dev/video0 -v /tmp/.X11-unix:/tmp/.X11-unix:ro \ + -e DISPLAY=unix$DISPLAY -v /root/.Xauthority:/root/.Xauthority \ + --env="QT_X11_NO_MITSHM=1" \ + cokr6901/ibtc:v1.0 \ + bash -c "cd /home/test_ws && source devel/setup.bash && roslaunch ibtc loop_test_rgb_avia_privatedata.launch" +