Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support docker and add description #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docker/docker.md
Original file line number Diff line number Diff line change
@@ -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
```
17 changes: 17 additions & 0 deletions docker/run_ibtc.sh
Original file line number Diff line number Diff line change
@@ -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"