From 5ddc166fa73d6b3269ae2a2e3477bd5b2d91d7e0 Mon Sep 17 00:00:00 2001 From: Hogyun2 Date: Wed, 20 Nov 2024 20:19:39 +0900 Subject: [PATCH] Add docker files --- docker/docker.md | 9 +++++++++ docker/run_ibtc.sh | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 docker/docker.md create mode 100644 docker/run_ibtc.sh 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" +