From 79c9d737b6606e7d880a1be8ad030d2c1d089c7b Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Fri, 2 Feb 2024 22:07:49 -0700 Subject: [PATCH] Add dockerfile for rolling Signed-off-by: Ryan Friedman --- Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b38b077d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +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 +