Skip to content

Commit

Permalink
Allow usage of different ROS distributions in Dockerfile (#313)
Browse files Browse the repository at this point in the history
* Allow usage of different ROS distributions in Dockerfile

* iron docker is working too
  • Loading branch information
uwearzt authored Jul 13, 2023
1 parent 8d5d57e commit 50bf305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ros:humble as base
ARG ROS_DISTRO=humble
FROM ros:$ROS_DISTRO as base
ARG DEBIAN_FRONTEND=noninteractive

# Install dependencies
Expand Down
3 changes: 2 additions & 1 deletion docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ Build the Docker image with

```shell
# Make sure to run this in the workspace directory
docker build -t ros2_rust_dev - < src/ros2_rust/Dockerfile
# ROS_DISTRO can be humble|iron|rolling
docker build -f src/ros2_rust/Dockerfile --build-arg "ROS_DISTRO=humble" -t ros2_rust_dev
```

and then run it with
Expand Down

0 comments on commit 50bf305

Please sign in to comment.