Skip to content

Instantly share code, notes, and snippets.

@jclinton830
Created July 20, 2023 00:01
Show Gist options
  • Save jclinton830/4b4bfd522be9616527d4ff050a14521b to your computer and use it in GitHub Desktop.
Save jclinton830/4b4bfd522be9616527d4ff050a14521b to your computer and use it in GitHub Desktop.
shell script to work with ROS pacakges in a docker container
#!/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