-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 1.17 KB
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
FROM ros:melodic-ros-core
MAINTAINER Yosuke Matsusaka <yosuke.matsusaka@gmail.com>
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y curl supervisor && \
apt-get clean
# OSRF distribution is better for gazebo
RUN sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list' && \
curl -L http://packages.osrfoundation.org/gazebo.key | apt-key add -
RUN source /opt/ros/melodic/setup.bash && \
mkdir -p ~/catkin_ws/src && cd ~/catkin_ws/src && \
catkin_init_workspace && \
git clone --depth 1 https://github.com/ros-simulation/gazebo_ros_demos.git && \
cd .. && \
rosdep update && apt-get update && \
rosdep install --from-paths src --ignore-src -r -y && \
catkin_make -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic install && \
apt-get clean && rm -r ~/catkin_ws
ADD supervisord.conf /etc/supervisor/supervisord.conf
VOLUME ["/opt/ros/melodic/share/rrbot_description", "/opt/ros/melodic/share/rrbot_control"]
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]