forked from zhixy/multical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_ros1_18_04
51 lines (33 loc) · 1.61 KB
/
Dockerfile_ros1_18_04
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
# modified from https://github.com/ethz-asl/kalibr/blob/master/Dockerfile_ros1_18_04
FROM osrf/ros:melodic-desktop-full
# use tuna mirror
RUN rm -r /etc/apt/sources.list.d && \
sh -c "echo 'deb https://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse\n\
deb https://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse\n\
deb https://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse\n\
deb https://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse\n\
deb https://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse\n\
deb https://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ bionic main' > /etc/apt/sources.list"
RUN apt-get update && DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
git wget autoconf automake nano \
python3-dev python-pip python-scipy python-matplotlib \
ipython python-wxgtk4.0 python-tk python-igraph python-pyx \
libeigen3-dev libboost-all-dev libsuitesparse-dev \
doxygen \
libopencv-dev \
libpoco-dev libtbb-dev libblas-dev liblapack-dev libv4l-dev \
python-catkin-tools
RUN python -m pip install -i https://mirrors.aliyun.com/pypi/simple --upgrade pip
RUN pip install -i https://mirrors.aliyun.com/pypi/simple open3d==0.9.0 scikit-image
ENV WORKSPACE /catkin_ws
RUN mkdir -p $WORKSPACE/src && \
cd $WORKSPACE && \
catkin init && \
catkin config --extend /opt/ros/melodic && \
catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release
ADD . $WORKSPACE/src/multical
RUN cd $WORKSPACE &&\
catkin build -j$(nproc)
ENTRYPOINT cd $WORKSPACE && \
/bin/bash