-
Notifications
You must be signed in to change notification settings - Fork 420
/
Dockerfile_20_04
88 lines (80 loc) · 2.52 KB
/
Dockerfile_20_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
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
FROM ubuntu:20.04
LABEL maintainer="[email protected]"
# To avoid tzdata asking for geographic location...
ENV DEBIAN_FRONTEND=noninteractive
ENV DIRPATH /root/
WORKDIR $DIRPATH
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN apt-get update && \
apt-get install -y \
build-essential \
cmake \
gfortran \
git \
libatlas-base-dev \
libboost-all-dev \
libeigen3-dev \
libgflags-dev \
libgoogle-glog-dev \
libmetis-dev \
libopencv-dev \
libopencv-contrib-dev \
libtbb-dev \
pkg-config \
xvfb \
python3 \
python3-dev \
python3-pip \
python3-tk && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ADD https://api.github.com/repos/borglab/gtsam/git/refs/heads/develop version.json
RUN git clone https://github.com/borglab/gtsam.git && \
cd gtsam && \
git checkout 4.2 && \
mkdir build && \
cd build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr/local \
-DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF \
-DGTSAM_BUILD_TESTS=OFF \
-DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DGTSAM_BUILD_UNSTABLE=ON \
-DGTSAM_POSE3_EXPMAP=ON \
-DGTSAM_ROT3_EXPMAP=ON \
-DGTSAM_TANGENT_PREINTEGRATION=OFF \
-DGTSAM_USE_SYSTEM_EIGEN=ON \
-DGTSAM_USE_SYSTEM_METIS=ON \
.. && \
make -j$(nproc) install
# Install Open_GV
RUN git clone https://github.com/marcusabate/opengv && \
cd opengv && \
git apply march_native_disable.patch && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local \
.. && \
make -j$(nproc) install
# Install DBoW2
COPY .patches/fix_vocab.patch dbow2.patch
RUN git clone https://github.com/dorian3d/DBoW2.git
RUN cd DBoW2 && \
git apply ../dbow2.patch && \
mkdir build && \
cd build && \
cmake .. && \
make -j$(nproc) install
# Install RobustPGO
ADD https://api.github.com/repos/MIT-SPARK/Kimera-RPGO/git/refs/heads/master version.json
RUN git clone https://github.com/MIT-SPARK/Kimera-RPGO.git
RUN cd Kimera-RPGO && \
mkdir build && \
cd build && \
cmake .. && \
make -j$(nproc) install
# Install Kimera-VIO-Evaluation
RUN python3 -m pip install --upgrade pip
ADD https://api.github.com/repos/MIT-SPARK/Kimera-VIO-Evaluation/git/refs/heads/fix/python3 version.json
RUN python3 -m pip install git+https://github.com/MIT-SPARK/Kimera-VIO-Evaluation.git@fix/python3