diff --git a/Dockerfile b/Dockerfile index af6f891..15cfef6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -75,7 +75,7 @@ RUN source "/opt/ros/${ROS_DISTRO}/setup.bash" && \ rm -rf ${WS_LOG_DIR} # Copy example svg images -COPY ./svg svg +COPY ./svg test-images ### Add workspace to the ROS entrypoint ### Source ROS workspace inside `~/.bashrc` to enable autocompletion diff --git a/README.md b/README.md index 2c96221..5316fce 100644 --- a/README.md +++ b/README.md @@ -34,13 +34,21 @@ If active changes are being made, run: bash .docker/devel.bash ``` This will mount the host `drawing-robot-ros2` directory in the container at `src/drawing-robot-ros2`. -If using podman instead of docker using the following will allow the container to access `/dev/` which is needed by the axidraw robot. + +Optionally you can pass a directory to the container with +``` sh +bash .docker/run.bash -v PATH_TO_SVG:/ws/PATH_IN_CONTAINER:ro +``` + +#### Podman issues +If using podman instead of docker, using the following will allow the container to access `/dev/` which is needed by the axidraw robot. ``` sh sudo bash .docker/build.bash ``` ``` sh sudo bash .docker/devel.bash ``` +Adding sudo may cause gazebo not to work, so it is recommended to use docker instead of podman. ## TODO Building locally