forked from nicolov/occupancy_mapping_benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
101 lines (81 loc) · 2.24 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# This is an auto generated Dockerfile for ros:ros-core
# generated from docker_images/create_ros_core_image.Dockerfile.em
FROM ubuntu:bionic
#
# ROS
# from https://github.com/osrf/docker_images/blob/eaca344ae304c30254451da89bae328eb65ee385/ros/melodic/ubuntu/bionic/ros-core/Dockerfile
# setup timezone
RUN echo 'Etc/UTC' > /etc/timezone && \
ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
apt-get update && apt-get install -q -y tzdata && rm -rf /var/lib/apt/lists/*
# install packages
RUN apt-get update && apt-get install -q -y \
dirmngr \
gnupg2 \
lsb-release \
&& rm -rf /var/lib/apt/lists/*
# setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 421C365BD9FF1F717815A3895523BAEEB01FA116
# setup sources.list
RUN echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list
# install bootstrap tools
RUN apt-get update && apt-get install --no-install-recommends -y \
python-rosdep \
python-rosinstall \
python-vcstools \
&& rm -rf /var/lib/apt/lists/*
# setup environment
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
# bootstrap rosdep
RUN rosdep init \
&& rosdep update
# install ros packages
ENV ROS_DISTRO melodic
RUN apt-get update && apt-get install -y \
ros-melodic-desktop \
&& rm -rf /var/lib/apt/lists/*
#
# Other things for ROS
RUN apt-get update && apt-get install -q -y \
ninja-build python-pip python-dev python-wstool \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -U \
catkin-tools \
jinja2
# Nice backtraces for backward-cpp
RUN apt-get update && apt-get install -q -y \
binutils-dev \
&& rm -rf /var/lib/apt/lists/*
#
# Project
RUN apt-get update && apt-get install -q -y \
autoconf \
ccache \
clang-format-6.0 \
libopenvdb-dev \
htop \
ros-melodic-octomap \
ros-melodic-octomap-msgs \
ros-melodic-octomap-ros \
ros-melodic-pcl-ros \
ros-melodic-tf2-eigen \
rsync \
tmux \
vim \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -U \
matplotlib \
numpy \
pandas \
seaborn \
tabulate \
toml \
zpretty \
&& rm -rf $HOME/.cache/pip
#
#
COPY ./ros_entrypoint.sh /
ENTRYPOINT ["/ros_entrypoint.sh"]
CMD ["bash"]