-
Notifications
You must be signed in to change notification settings - Fork 432
/
Dockerfile.xenial
282 lines (259 loc) · 8.77 KB
/
Dockerfile.xenial
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
FROM ubuntu:16.04
MAINTAINER Howard Butler <howard@hobu.co>
RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 16126D3A3E5C1192
RUN apt-get update -qq
RUN apt-get -qq remove postgis
RUN apt-get update && apt-get install -y --fix-missing --no-install-recommends \
build-essential \
ca-certificates \
cmake \
curl \
gfortran \
git \
libarmadillo-dev \
libarpack2-dev \
libflann-dev \
libhdf5-serial-dev \
liblapack-dev \
libtiff5-dev \
openssh-client \
python-dev \
python-numpy \
python-software-properties \
software-properties-common \
wget \
automake \
libtool \
libspatialite-dev \
libhdf5-dev \
subversion \
libjsoncpp-dev \
libboost-filesystem-dev \
libboost-iostreams-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-thread-dev \
subversion \
clang \
libproj-dev \
libc6-dev \
libnetcdf-dev \
libjasper-dev \
libpng-dev \
libjpeg-dev \
libgif-dev \
libwebp-dev \
libhdf4-alt-dev \
libhdf5-dev \
libpq-dev \
libxerces-c-dev \
unixodbc-dev \
libsqlite3-dev \
libgeos-dev \
libmysqlclient-dev \
libltdl-dev \
libcurl4-openssl-dev \
libspatialite-dev \
libdap-dev\
ninja \
cython \
python-pip \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth=1 https://github.com/OSGeo/gdal.git \
&& cd gdal/gdal \
&& ./configure --prefix=/usr \
--mandir=/usr/share/man \
--includedir=/usr/include/gdal \
--with-threads \
--with-grass=no \
--with-hide-internal-symbols=yes \
--with-rename-internal-libtiff-symbols=yes \
--with-rename-internal-libgeotiff-symbols=yes \
--with-libtiff=internal \
--with-geotiff=internal \
--with-webp \
--with-jasper \
--with-netcdf \
--with-hdf5=/usr/lib/x86_64-linux-gnu/hdf5/serial/ \
--with-xerces \
--with-geos \
--with-sqlite3 \
--with-curl \
--with-pg \
--with-mysql \
--with-python \
--with-odbc \
--with-ogdi \
--with-dods-root=/usr \
--with-spatialite=/usr \
--with-cfitsio=no \
--with-ecw=no \
--with-mrsid=no \
--with-poppler=yes \
--with-openjpeg=yes \
--with-freexl=yes \
--with-libkml=yes \
--with-armadillo=yes \
--with-liblzma=yes \
--with-epsilon=/usr \
&& make -j 4 \
&& make install \
&& rm -rf /gdal
RUN git clone https://github.com/hobu/nitro \
&& cd nitro \
&& mkdir build \
&& cd build \
&& cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
.. \
&& make \
&& make install \
&& rm -rf /nitro
RUN git clone https://github.com/LASzip/LASzip.git laszip \
&& cd laszip \
&& git checkout e7065cbc5bdbbe0c6e50c9d93d1cd346e9be6778 \
&& mkdir build \
&& cd build \
&& cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE="Release" \
.. \
&& make \
&& make install \
&& rm -rf /laszip
RUN git clone https://github.com/hobu/hexer.git \
&& cd hexer \
&& mkdir build \
&& cd build \
&& cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE="Release" \
.. \
&& make \
&& make install \
&& rm -rf /hexer
RUN git clone https://github.com/CRREL/points2grid.git \
&& cd points2grid \
&& mkdir build \
&& cd build \
&& cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE="Release" \
.. \
&& make \
&& make install \
&& rm -rf /points2grid
RUN git clone https://github.com/hobu/laz-perf.git \
&& cd laz-perf \
&& mkdir build \
&& cd build \
&& cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE="Release" \
.. \
&& make \
&& make install \
&& rm -rf /laz-perf
RUN wget http://bitbucket.org/eigen/eigen/get/3.2.7.tar.gz \
&& tar -xvf 3.2.7.tar.gz \
&& cp -R eigen-eigen-b30b87236a1b/Eigen/ /usr/include/Eigen/ \
&& cp -R eigen-eigen-b30b87236a1b/unsupported/ /usr/include/unsupported/ \
&& rm -rf /3.2.7.tar.gz \
&& rm -rf /eigen-eigen-b30b87236a1b
RUN git clone https://github.com/chambbj/pcl.git \
&& cd pcl \
&& git checkout pcl-1.7.2-sans-opengl \
&& mkdir build \
&& cd build \
&& CXXFLAGS="-std=c++11" cmake \
-DBUILD_2d=ON \
-DBUILD_CUDA=OFF \
-DBUILD_GPU=OFF \
-DBUILD_apps=OFF \
-DBUILD_common=ON \
-DBUILD_examples=OFF \
-DBUILD_features=ON \
-DBUILD_filters=ON \
-DBUILD_geometry=ON \
-DBUILD_global_tests=OFF \
-DBUILD_io=ON \
-DBUILD_kdtree=ON \
-DBUILD_keypoints=ON \
-DBUILD_ml=ON \
-DBUILD_octree=ON \
-DBUILD_outofcore=OFF \
-DBUILD_people=OFF \
-DBUILD_recognition=OFF \
-DBUILD_registration=ON \
-DBUILD_sample_concensus=ON \
-DBUILD_search=ON \
-DBUILD_segmentation=ON \
-DBUILD_simulation=OFF \
-DBUILD_stereo=OFF \
-DBUILD_surface=ON \
-DBUILD_surface_on_nurbs=OFF \
-DBUILD_tools=OFF \
-DBUILD_tracking=OFF \
-DBUILD_visualization=OFF \
-DWITH_LIBUSB=OFF \
-DWITH_OPENNI=OFF \
-DWITH_OPENNI2=OFF \
-DWITH_FZAPI=OFF \
-DWITH_PXCAPI=OFF \
-DWITH_PNG=OFF \
-DWITH_QHULL=OFF \
-DWITH_QT=OFF \
-DWITH_VTK=OFF \
-DWITH_PCAP=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE="Release" \
.. \
&& make \
&& make install \
&& rm -rf /pcl
RUN svn co -r 2691 https://svn.osgeo.org/metacrs/geotiff/trunk/libgeotiff/ \
&& cd libgeotiff \
&& ./autogen.sh \
&& ./configure --prefix=/usr \
&& make \
&& make install \
&& rm -rf /libgeotiff
RUN apt-get update && apt-get install -y --fix-missing --no-install-recommends \
ninja-build \
libgeos++-dev \
unzip \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /vdatum \
&& cd /vdatum \
&& wget http://download.osgeo.org/proj/vdatum/usa_geoid2012.zip && unzip -j -u usa_geoid2012.zip -d /usr/share/proj \
&& wget http://download.osgeo.org/proj/vdatum/usa_geoid2009.zip && unzip -j -u usa_geoid2009.zip -d /usr/share/proj \
&& wget http://download.osgeo.org/proj/vdatum/usa_geoid2003.zip && unzip -j -u usa_geoid2003.zip -d /usr/share/proj \
&& wget http://download.osgeo.org/proj/vdatum/usa_geoid1999.zip && unzip -j -u usa_geoid1999.zip -d /usr/share/proj \
&& wget http://download.osgeo.org/proj/vdatum/vertcon/vertconc.gtx && mv vertconc.gtx /usr/share/proj \
&& wget http://download.osgeo.org/proj/vdatum/vertcon/vertcone.gtx && mv vertcone.gtx /usr/share/proj \
&& wget http://download.osgeo.org/proj/vdatum/vertcon/vertconw.gtx && mv vertconw.gtx /usr/share/proj \
&& wget http://download.osgeo.org/proj/vdatum/egm96_15/egm96_15.gtx && mv egm96_15.gtx /usr/share/proj \
&& wget http://download.osgeo.org/proj/vdatum/egm08_25/egm08_25.gtx && mv egm08_25.gtx /usr/share/proj \
&& rm -rf /vdatum
RUN git clone https://github.com/gadomski/fgt.git \
&& cd fgt \
&& git checkout v0.4.4 \
&& cmake . -DWITH_TESTS=OFF -DBUILD_SHARED_LIBS=ON -DEIGEN3_INCLUDE_DIR=/usr/include -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
&& make \
&& make install \
&& rm -rf /fgt
RUN git clone https://github.com/gadomski/cpd.git \
&& cd cpd \
&& git checkout v0.3.2 \
&& cmake . -DWITH_TESTS=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
&& make \
&& make install \
&& rm -rf /cpd
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
RUN apt-get clean