Skip to content

Commit 79c9d73

Browse files
committed
Add dockerfile for rolling
Signed-off-by: Ryan Friedman <[email protected]>
1 parent 886ba24 commit 79c9d73

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
ARG ROS_DISTRO=rolling
2+
FROM ros:${ROS_DISTRO}-ros-core
3+
4+
RUN apt-get update \
5+
&& apt-get install -y \
6+
ros-dev-tools \
7+
wget
8+
9+
WORKDIR /root/ros2_ws/
10+
RUN mkdir -p src
11+
COPY tools/ros2_dependencies.repos .
12+
RUN vcs import --input ros2_dependencies.repos src
13+
RUN rosdep init
14+
15+
COPY . src/grid_map
16+
RUN ls src/grid_map
17+
18+
SHELL ["/bin/bash", "-c"]
19+
RUN apt-get update \
20+
&& rosdep update
21+
22+
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
23+
&& rosdep install -y --ignore-src --from-paths src --skip-keys slam_toolbox
24+
25+
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \
26+
&& colcon build --symlink-install --packages-up-to grid_map
27+

0 commit comments

Comments
 (0)