-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
31 lines (24 loc) · 1.27 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 <[email protected]>
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND noninteractive
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/avidbots/flatland.git && \
git clone --depth 1 https://github.com/avidbots/turtlebot_flatland.git && \
git clone --depth 1 -b melodic https://github.com/turtlebot/turtlebot.git && \
git clone --depth 1 https://github.com/turtlebot/turtlebot_apps.git && \
rm -r turtlebot_apps/turtlebot_actions && \
rm -r turtlebot_apps/turtlebot_follower && \
git clone --depth 1 -b melodic https://github.com/yujinrobot/kobuki.git && \
cd .. && \
rosdep update && apt-get update && \
apt-get install -y supervisor && \
rosdep install --from-paths src --ignore-src -r -y && \
catkin_make -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic install && \
cp -r src/turtlebot_flatland /opt/ros/melodic/share/ && \
apt-get clean && rm -r ~/catkin_ws
ADD supervisord.conf /etc/supervisor/supervisord.conf
VOLUME /opt/ros/melodic/share/turtlebot_description
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]