forked from husarion/rosbot-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.simulation
37 lines (29 loc) · 963 Bytes
/
Dockerfile.simulation
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
37
ARG ROS_DISTRO=melodic
FROM osrf/ros:$ROS_DISTRO-desktop
# select bash as default shell
SHELL ["/bin/bash", "-c"]
# install dependencies
RUN apt-get update && \
apt install -y git && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/husarion/rosbot_ros.git --branch=melodic /ros_ws
WORKDIR /ros_ws
# install dependencies
RUN apt-get update && \
apt install -y python3-pip && \
pip3 install -U argcomplete && \
source /opt/ros/$ROS_DISTRO/setup.bash && \
cd /ros_ws/src && \
catkin_init_workspace && \
cd /ros_ws && \
rosdep update --rosdistro $ROS_DISTRO && \
rosdep install --from-paths src --ignore-src -r -y --rosdistro $ROS_DISTRO && \
catkin_make -DCMAKE_BUILD_TYPE=Release && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# replace entrypoint
ENTRYPOINT ["/ros_ws/ros_entrypoint.sh"]
CMD ["bash"]