-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 930 Bytes
/
Dockerfile
File metadata and controls
36 lines (29 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ARG ROS_DISTRO=rolling
FROM ros:${ROS_DISTRO}-ros-core
WORKDIR /root/ros2_ws/
# Install essential dependencies
RUN apt-get update && \
apt-get install -y \
ros-dev-tools \
wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Clone dependencies
COPY tools/ros2_dependencies.repos .
RUN mkdir -p src && \
vcs import --input ros2_dependencies.repos src
# Initialize rosdep
RUN rosdep init
# Copy source code
COPY . src/grid_map
# Install dependencies
SHELL ["/bin/bash", "-c"]
RUN apt-get update && \
rosdep update && \
source /opt/ros/${ROS_DISTRO}/setup.bash && \
rosdep install -y --ignore-src --from-paths src --skip-keys slam_toolbox --skip-keys gazebo_ros_pkgs --skip-keys turtlebot3_gazebo && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Build
RUN source /opt/ros/${ROS_DISTRO}/setup.bash && \
colcon build --symlink-install --packages-up-to grid_map