-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
28 lines (22 loc) · 830 Bytes
/
Dockerfile
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
FROM ros:noetic-ros-core-focal
RUN apt-get update && apt-get install -y --no-install-recommends \
gazebo11 \
build-essential \
python3-catkin-tools \
python3-rosdep \
ros-noetic-moveit \
ros-noetic-moveit-plugins \
ros-noetic-moveit-planners \
&& rm -rf /var/lib/apt/lists/*
COPY catkin_ws/src /home/catkin_ws/src
COPY catkin_ws/src/simple_scene/worlds /usr/share/gazebo-11/worlds
COPY catkin_ws/src/simple_scene/models /root/.gazebo/models
RUN cd /home/catkin_ws/src \
&& rosdep init \
&& rosdep update
RUN . /opt/ros/noetic/setup.sh \
&& apt-get update \
&& cd /home/catkin_ws \
&& rosdep install --rosdistro=noetic --from-path . -y --ignore-src
RUN . /opt/ros/noetic/setup.sh && cd /home/catkin_ws && catkin build
RUN echo "source /opt/ros/noetic/setup.sh" >> ~/.bashrc