Created
July 20, 2023 00:01
-
-
Save jclinton830/4b4bfd522be9616527d4ff050a14521b to your computer and use it in GitHub Desktop.
shell script to work with ROS pacakges in a docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# AUTHOR: Jerome Justin - ACFR - github - jclinton830 | |
# DESSCRIPTION: shell script to work with ROS pacakges in a docker container | |
# ATTENTION: modify base docker image and volume mount paths before use | |
XSOCK=/tmp/.X11-unix | |
XAUTH=$HOME/.Xauthority | |
VOLUMES="--volume=${PWD}/../dataset_metapackage:/catkin/src/dataset_metapackage:rw" | |
xhost +local:docker | |
docker run \ | |
-it --rm \ | |
-v /media:/media/jerome/Samsung_T5/ \ | |
$VOLUMES \ | |
$ENVS \ | |
--privileged \ | |
--net=host \ | |
--workdir="/catkin" \ | |
--name dataset-tools acfr/its-dataset-tools |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment