Skip to content

Commit

Permalink
Add dockerfile for rolling
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Feb 3, 2024
1 parent 886ba24 commit 615928d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ARG ROS_DISTRO=rolling
FROM ros:${ROS_DISTRO}-ros-core

RUN apt-get update \
&& apt-get install -y \
ros-dev-tools \
wget

WORKDIR /root/ros2_ws/
RUN mkdir -p src
COPY tools/ros2_dependencies.repos .
RUN vcs import --input ros2_dependencies.repos src
RUN rosdep init

COPY . src/grid_map
RUN ls src/grid_map

SHELL ["/bin/bash", "-c"]
RUN apt-get update \
&& rosdep update

RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
&& rosdep install -y --ignore-src --from-paths src --skip-keys slam_toolbox

RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
&& colcon build --symlink-install --packages-up-to grid_map

0 comments on commit 615928d

Please sign in to comment.