Skip to content

Commit 7251166

Browse files
committed
add Shapely and Fiona
1 parent f229c86 commit 7251166

File tree

2 files changed

+39
-10
lines changed

2 files changed

+39
-10
lines changed

Dockerfile

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,33 @@ RUN \
137137
&& rm -rf zstd*
138138

139139

140+
RUN \
141+
git clone https://github.com/TileDB-Inc/TileDB.git \
142+
&& cd TileDB \
143+
&& git checkout 2.1.3 \
144+
&& mkdir _build \
145+
&& cd _build \
146+
&& DESTDIR=/ cmake \
147+
-G "Unix Makefiles" \
148+
-DCMAKE_INSTALL_PREFIX=/usr/ \
149+
-DCMAKE_BUILD_TYPE="Release" \
150+
-DBUILD_TESTING=OFF \
151+
-DTILEDB_WERROR=OFF \
152+
-DTILEDB_TESTS=OFF \
153+
-DTILEDB_INSTALL_LIBDIR=lib \
154+
-DTILEDB_HDFS=ON \
155+
-DSANITIZER="OFF;-DCOMPILER_SUPPORTS_AVX2:BOOL=FALSE" \
156+
-DTILEDB_S3=ON \
157+
-DTILEDB_SERIALIZATION=ON \
158+
-DTILEDB_LOG_OUTPUT_ON_FAILURE=ON \
159+
-DTILEDB_AZURE=ON \
160+
.. \
161+
&& DESTDIR=/ make -j ${PARALLEL} \
162+
&& make -C tiledb install \
163+
&& make -C tiledb install DESTDIR=/ \
164+
&& cd /var/task \
165+
&& rm -rf TileDB* *.gz
166+
140167
RUN git clone --branch release/ https://github.com/OSGeo/gdal.git --branch v${GDAL_VERSION} \
141168
&& cd gdal/gdal \
142169
&& ./configure --prefix=/usr \
@@ -151,6 +178,7 @@ RUN git clone --branch release/ https://github.com/OSGeo/gdal.git --branch v${GD
151178
--with-libtiff=/usr/ \
152179
--with-geos=/usr/bin/geos-config \
153180
--with-geotiff=/usr \
181+
--with-tiledb=/usr \
154182
--with-proj=/usr \
155183
--with-ogdi=no \
156184
--with-curl \
@@ -248,11 +276,12 @@ RUN wget https://github.com/xianyi/OpenBLAS/archive/v0.3.10.tar.gz \
248276

249277
# scikit-build will respect our DESTDIR and put things in the wrong directory
250278
RUN DESTDIR= python -m pip install PDAL --prefix /build/python \
251-
&& python -m pip install pandas scipy scikit-learn --no-binary :all: --verbose --prefix /build/python \
252-
&& cd /var/task \
253-
&& rm -rf pdal-python
279+
&& python -m pip install pandas scipy scikit-learn --no-binary :all: --verbose --prefix /build/python
280+
281+
RUN ldconfig
282+
RUN python -m pip install Shapely Fiona --no-binary :all: --prefix /build/python
254283

255-
RUN DESTDIR= python -m pip install pytz --target /build/python/lib/python3.7/site-packages/
284+
RUN python -m pip install pytz --target /build/python/lib/python3.7/site-packages/
256285

257286
RUN rm /build/usr/lib/*.la ; rm /build/usr/lib/*.a
258287
RUN rm /build/usr/lib64/*.a

README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ Instructions
4444
::
4545

4646
$ ./create-lambda-layer.sh
47-
Published version 40 for Lambda layer pdal
48-
Setting execution access to public for version 40 for Lambda layer pdal
49-
Layer pdal is available at 'arn:aws:lambda:us-east-1:163178234892:layer:pdal:40'
50-
Published version 17 for Lambda layer pdal-python
51-
Setting execution access to public for version 17 for Lambda layer pdal-python
52-
Layer pdal-python is available at 'arn:aws:lambda:us-east-1:163178234892:layer:pdal-python:17'
47+
Published version 41 for Lambda layer pdal
48+
Setting execution access to public for version 41 for Lambda layer pdal
49+
Layer pdal is available at 'arn:aws:lambda:us-east-1:163188234892:layer:pdal:41'
50+
Published version 18 for Lambda layer pdal-python
51+
Setting execution access to public for version 18 for Lambda layer pdal-python
52+
Layer pdal-python is available at 'arn:aws:lambda:us-east-1:163188234892:layer:pdal-python:18'
5353

5454
.. _`Lambda Layers`: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
5555
.. _`GeoLambda`: https://github.com/developmentseed/geolambda

0 commit comments

Comments
 (0)