11FROM lambci/lambda:build-python3.7 as builder
22
33ARG http_proxy
4- ARG CURL_VERSION=7.70.0
5- ARG GDAL_VERSION=3.1.0
4+ ARG CURL_VERSION=7.70.1
5+ ARG GDAL_VERSION=3.1.2
66ARG GEOS_VERSION=3.8.1
7- ARG PROJ_VERSION=7.0.1
7+ ARG PROJ_VERSION=7.1.0
88ARG LASZIP_VERSION=3.4.3
99ARG GEOTIFF_VERSION=1.6.0
1010ARG PDAL_VERSION=2.1.0
1111ARG ENTWINE_VERSION=2.1.0
1212ARG DESTDIR="/build"
1313ARG PREFIX="/usr"
1414ARG PARALLEL=8
15- ARG CMAKE_VERSION=3.17.2
15+ ARG CMAKE_VERSION=3.18.1
16+
1617
1718
1819RUN \
@@ -43,12 +44,9 @@ RUN gcc --version
4344
4445
4546RUN \
46- wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz \
47- && tar -zxvf cmake-${CMAKE_VERSION}.tar.gz \
48- && cd cmake-${CMAKE_VERSION} \
49- && ./bootstrap --parallel=${PARALLEL} --prefix=/usr \
50- && make -j ${PARALLEL} \
51- && make install DESTDIR=/ \
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 \
5250 && cd /var/task \
5351 && rm -rf cmake*
5452
@@ -139,6 +137,7 @@ RUN git clone --branch release/ https://github.com/OSGeo/gdal.git --branch v${GD
139137 --mandir=/usr/share/man \
140138 --includedir=/usr/include/gdal \
141139 --with-threads \
140+ --without-libtool \
142141 --with-grass=no \
143142 --with-hide-internal-symbols=yes \
144143 --with-rename-internal-libtiff-symbols=yes \
@@ -177,8 +176,6 @@ RUN \
177176ADD https://api.github.com/repos/PDAL/PDAL/commits?sha=${PDAL_VERSION} \
178177 /tmp/bust-cache
179178
180- ENV \
181- PACKAGE_PREFIX=${DESTDIR}/python
182179
183180RUN \
184181 git clone https://github.com/PDAL/PDAL.git --branch ${PDAL_VERSION} \
@@ -188,8 +185,8 @@ RUN \
188185 && cd _build \
189186 && cmake .. \
190187 -G "Unix Makefiles" \
191- -DCMAKE_BUILD_TYPE=Release \
192- -DCMAKE_CXX_FLAGS="-std=c++11" \
188+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
189+ -DCMAKE_CXX_FLAGS="-std=c++11 -pg " \
193190 -DCMAKE_MAKE_PROGRAM=make \
194191 -DBUILD_PLUGIN_I3S=ON \
195192 -DBUILD_PLUGIN_E57=ON \
@@ -210,10 +207,11 @@ RUN \
210207# RUN \
211208# git clone https://github.com/PDAL/python.git pdal-python \
212209# && cd pdal-python \
213- # && pip install numpy Cython packaging \
214- # && ls /usr/bin/pd* \
215- # && PDAL_CONFIG=/usr/bin/pdal-config pip install . --no-binary numpy -t $PACKAGE_PREFIX \
216- # && ls $PACKAGE_PREFIX
210+ # && python -m pip install --upgrade pip \
211+ # && pip install numpy scikit-build packaging ninja cmake cython \
212+ # && bash -c 'python setup.py build' \
213+ # && bash -c 'python setup.py bdist_wheel' \
214+ # && ls dist
217215
218216RUN \
219217 git clone https://github.com/connormanning/entwine.git --branch ${ENTWINE_VERSION} \
0 commit comments