Skip to content

Commit 2842e28

Browse files
committed
build zstd first so GDAL can use it #8
1 parent c47b7c3 commit 2842e28

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

Dockerfile

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,23 @@ RUN git clone --branch master https://github.com/OSGeo/libgeotiff.git --branch $
115115
&& cd /var/task \
116116
&& rm -rf libgeotiff*
117117

118+
RUN \
119+
wget https://github.com/facebook/zstd/releases/download/v1.4.4/zstd-1.4.4.tar.gz \
120+
&& tar zxvf zstd-1.4.4.tar.gz \
121+
&& cd zstd-1.4.4/build/cmake \
122+
&& mkdir -p _build \
123+
&& cd _build \
124+
&& cmake \
125+
-G Ninja \
126+
-DCMAKE_INSTALL_PREFIX=/usr/ \
127+
-DCMAKE_BUILD_TYPE="Release" \
128+
.. \
129+
&& ninja -j ${PARALLEL} \
130+
&& ninja install \
131+
&& DESTDIR=/ ninja install \
132+
&& cd /var/task \
133+
&& rm -rf zstd*
134+
118135

119136
RUN git clone --branch release/ https://github.com/OSGeo/gdal.git --branch v${GDAL_VERSION} \
120137
&& cd gdal/gdal \
@@ -141,23 +158,6 @@ RUN git clone --branch release/ https://github.com/OSGeo/gdal.git --branch v${GD
141158
&& rm -rf gdal*
142159

143160

144-
RUN \
145-
wget https://github.com/facebook/zstd/releases/download/v1.4.4/zstd-1.4.4.tar.gz \
146-
&& tar zxvf zstd-1.4.4.tar.gz \
147-
&& cd zstd-1.4.4/build/cmake \
148-
&& mkdir -p _build \
149-
&& cd _build \
150-
&& cmake \
151-
-G Ninja \
152-
-DCMAKE_INSTALL_PREFIX=/usr/ \
153-
-DCMAKE_BUILD_TYPE="Release" \
154-
.. \
155-
&& ninja -j ${PARALLEL} \
156-
&& ninja install \
157-
&& DESTDIR=/ ninja install \
158-
&& cd /var/task \
159-
&& rm -rf zstd*
160-
161161
RUN \
162162
wget http://apache.mirrors.hoobly.com//xerces/c/3/sources/xerces-c-3.2.3.tar.gz \
163163
&& tar zxvf xerces-c-3.2.3.tar.gz \

README.rst

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

4646
$ ./create-lambda-layer.sh
47-
Published version 30 for Lambda layer pdal
48-
Setting execution access to public for version 30 for Lambda layer pdal
47+
Published version 31 for Lambda layer pdal
48+
Setting execution access to public for version 31 for Lambda layer pdal
4949
Layer pdal is available at 'arn:aws:lambda:us-east-1:163178234892:layer:pdal'
5050

5151
.. _`Lambda Layers`: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html

0 commit comments

Comments
 (0)