-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (21 loc) · 800 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (21 loc) · 800 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
FROM arm32v7/ros:melodic-ros-core-bionic
COPY qemu-arm-static /usr/bin
# Install navigation stack.
RUN apt update && apt install -y \
g++ \
ros-melodic-navigation \
ros-melodic-teb-local-planner \
ros-melodic-xacro \
ros-melodic-gazebo-ros \
ros-melodic-joint-state-publisher \
ros-melodic-robot-state-publisher
RUN rm -rf /var/lib/apt/lists/*
# Configure ROS workspace.
COPY . ./root/catkin_ws/src/ros_navigation_stack
WORKDIR /root/catkin_ws
# Configuring docker container workspace.
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc
RUN ["/bin/bash", "-c", "source /opt/ros/${ROS_DISTRO}/setup.bash && catkin_make install -DCMAKE_INSTALL_PREFIX=/opt/ros/${ROS_DISTRO}"]
COPY entrypoint.sh /.
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]