-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
99 lines (88 loc) · 2.18 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
FROM nvidia/cudagl:10.2-devel-ubuntu18.04
WORKDIR /parrot-photogrammetry
COPY . /parrot-photogrammetry
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update \
&& apt install -y git \
repo \
ffmpeg \
python3 \
python3-pip \
python \
gosu \
cmake \
build-essential \
pkg-config \
libboost-all-dev \
libeigen3-dev \
libsuitesparse-dev \
libfreeimage-dev \
libgoogle-glog-dev \
libgflags-dev \
libglew-dev \
qtbase5-dev \
libqt5opengl5-dev \
libcgal-dev \
libvtk6-dev \
libflann-dev \
cmake libgmp-dev \
libgoogle-glog-dev \
libqwt-qt5-dev \
libpcl-dev \
libproj-dev \
libcgal-qt5-dev \
libatlas-base-dev \
libsuitesparse-dev \
zlib1g-dev \
libglfw3-dev \
libsdl2-dev rsync
RUN git clone https://github.com/laurentkneip/opengv.git
RUN cd opengv \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make -j8 \
&& make install \
&& cd ../../
RUN git clone https://github.com/opencv/opencv.git
RUN cd opencv \
&& git checkout 4.1.2 \
&& mkdir build \
&& cd build \
&& cmake -D WITH_CUDA=OFF .. \
&& make -j8 \
&& make install \
&& cd ../../
RUN git clone https://github.com/ETH3D/dataset-pipeline
RUN cd dataset-pipeline \
&& mkdir -p build \
&& cd build \
&& cmake .. \
&& make -j8 \
&& cd ../../
RUN git clone https://ceres-solver.googlesource.com/ceres-solver
RUN cd ceres-solver \
&& git checkout $(git describe --tags) \
&& mkdir build \
&& cd build \
&& cmake .. -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF \
&& make -j8 \
&& make install \
&& cd ../../
RUN git clone https://github.com/colmap/colmap.git
RUN cd colmap \
&& git checkout dev \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make -j8 \
&& make install \
&& cd ../../
RUN mkdir -p groundsdk \
&& cd groundsdk \
&& repo init -u https://github.com/Parrot-Developers/groundsdk-manifest -m release.xml \
&& repo sync
RUN mkdir -p /.config && chmod 777 -R /.config && chmod 777 -R groundsdk/ && cd groundsdk/ && yes "y" | gosu 1000:1 ./build.sh -p pdraw-linux -t build -j8 \
&& cd ../
RUN pip3 install -r requirements.txt
RUN /parrot-photogrammetry/build_pcl_util.sh