@@ -27,13 +27,15 @@ RUN \
2727 glib2-devel libtiff-devel pkg-config libcurl-devel; # required for pkg-config
2828
2929
30+ # curl -O https://mirror.centos.org/centos/6/extras/x86_64/Packages/centos-release-scl-rh-2-3.el6.centos.noarch.rpm && \
31+ # curl -O https://mirror.centos.org/centos/6/extras/x86_64/Packages/centos-release-scl-7-3.el6.centos.noarch.rpm && \
3032
3133RUN \
3234 yum install -y iso-codes && \
33- curl -O http ://vault.centos.org/6.5/SCL/x86_64/scl-utils/scl-utils-20120927-11.el6.centos.alt.x86_64.rpm && \
34- curl -O http ://vault.centos.org/6.5/SCL/x86_64/scl-utils/scl-utils-build-20120927-11.el6.centos.alt.x86_64.rpm && \
35- curl -O http ://mirror.centos.org /centos/6/extras/x86_64/Packages/centos-release-scl-rh-2-3.el6.centos.noarch.rpm && \
36- curl -O http ://mirror.centos.org /centos/6/extras/x86_64/Packages/centos-release-scl-7-3.el6.centos.noarch.rpm && \
35+ curl -O https ://vault.centos.org/6.5/SCL/x86_64/scl-utils/scl-utils-20120927-11.el6.centos.alt.x86_64.rpm && \
36+ curl -O https ://vault.centos.org/6.5/SCL/x86_64/scl-utils/scl-utils-build-20120927-11.el6.centos.alt.x86_64.rpm && \
37+ curl -O https ://mirror.facebook.net /centos/6/extras/x86_64/Packages/centos-release-scl-rh-2-3.el6.centos.noarch.rpm && \
38+ curl -O https ://mirror.facebook.net /centos/6/extras/x86_64/Packages/centos-release-scl-7-3.el6.centos.noarch.rpm && \
3739 rpm -Uvh *.rpm && \
3840 rm *.rpm && \
3941 yum install -y devtoolset-7-gcc-c++ devtoolset-7-make devtoolset-7-build ;
@@ -43,13 +45,15 @@ SHELL [ "/usr/bin/scl", "enable", "devtoolset-7"]
4345RUN gcc --version
4446
4547
46- RUN \
47- wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.sh \
48- && chmod +x cmake-${CMAKE_VERSION}-Linux-x86_64.sh \
49- && ./cmake-${CMAKE_VERSION}-Linux-x86_64.sh --skip-license --prefix=/usr \
50- && cd /var/task \
51- && rm -rf cmake*
48+ # RUN \
49+ # wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.sh \
50+ # && chmod +x cmake-${CMAKE_VERSION}-Linux-x86_64.sh \
51+ # && ./cmake-${CMAKE_VERSION}-Linux-x86_64.sh --skip-license --prefix=/usr \
52+ # && cd /var/task \
53+ # && rm -rf cmake*
5254
55+ RUN \
56+ pip install cmake ninja
5357
5458RUN git clone https://github.com/LASzip/LASzip.git laszip \
5559 && cd laszip \
7478 -G Ninja \
7579 -DCMAKE_INSTALL_PREFIX=/usr/ \
7680 -DCMAKE_BUILD_TYPE="Release" \
81+ -DBUILD_TESTING=OFF \
7782 . \
7883 && ninja -j ${PARALLEL} \
7984 && ninja install \
@@ -123,6 +128,7 @@ RUN \
123128 -G Ninja \
124129 -DCMAKE_INSTALL_PREFIX=/usr/ \
125130 -DCMAKE_BUILD_TYPE="Release" \
131+ -DBUILD_TESTING=OFF \
126132 .. \
127133 && ninja -j ${PARALLEL} \
128134 && ninja install \
@@ -167,6 +173,7 @@ RUN \
167173 -G "Ninja" \
168174 -DCMAKE_BUILD_TYPE=Release \
169175 -DCMAKE_INSTALL_PREFIX=/usr \
176+ -DBUILD_TESTING=OFF \
170177 && ninja -j ${PARALLEL} \
171178 && ninja install \
172179 && DESTDIR= ninja install \
@@ -201,15 +208,6 @@ RUN \
201208 && cd /var/task \
202209 && rm -rf PDAL*
203210
204- # RUN \
205- # git clone https://github.com/PDAL/python.git pdal-python \
206- # && cd pdal-python \
207- # && python -m pip install --upgrade pip \
208- # && pip install numpy scikit-build packaging ninja cmake cython \
209- # && bash -c 'python setup.py build' \
210- # && bash -c 'python setup.py bdist_wheel' \
211- # && ls dist
212-
213211RUN \
214212 git clone https://github.com/connormanning/entwine.git --branch ${ENTWINE_VERSION} \
215213 && cd entwine \
@@ -224,14 +222,40 @@ RUN \
224222 && cd /var/task \
225223 && rm -rf entwine*
226224
225+ RUN wget https://github.com/Reference-LAPACK/lapack/archive/v3.9.0.tar.gz \
226+ && tar zxvf v3.9.0.tar.gz \
227+ && cd lapack-3.9.0/ \
228+ && mkdir -p _build \
229+ && cd _build \
230+ && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -G Ninja -DBUILD_SHARED_LIBS=ON \
231+ && ninja -j ${PARALLEL} \
232+ && ninja install \
233+ && DESTDIR=/ ninja install \
234+ && cd /var/task \
235+ && rm -rf lapack*
236+
237+ RUN wget https://github.com/xianyi/OpenBLAS/archive/v0.3.10.tar.gz \
238+ && tar zxvf v0.3.10.tar.gz \
239+ && cd OpenBLAS-0.3.10/ \
240+ && mkdir -p _build \
241+ && cd _build \
242+ && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -G Ninja -DBUILD_SHARED_LIBS=ON \
243+ && ninja -j ${PARALLEL} \
244+ && ninja install \
245+ && DESTDIR=/ ninja install \
246+ && cd /var/task \
247+ && rm -rf OpenBLAS*
227248
249+ # scikit-build will respect our DESTDIR and put things in the wrong directory
228250RUN DESTDIR= python -m pip install PDAL --prefix /build/python \
229- && python -m pip install scipy scikit-learn --prefix /build/python \
251+ && python -m pip install pandas scipy scikit-learn --no-binary :all: --verbose --prefix /build/python \
230252 && cd /var/task \
231253 && rm -rf pdal-python
232254
255+ RUN DESTDIR= python -m pip install pytz --target /build/python/lib/python3.7/site-packages/
256+
233257RUN rm /build/usr/lib/*.la ; rm /build/usr/lib/*.a
234- RUN rm /build/usr/lib64/*.a
258+ RUN rm /build/usr/lib64/*.a
235259RUN ldconfig
236260ADD package-pdal.sh /
237261
0 commit comments