Skip to content

Commit 696ef04

Browse files
Merge pull request #55 from developmentseed/develop
1.1.0rc3
2 parents bbfc102 + d9e6703 commit 696ef04

File tree

6 files changed

+30
-16
lines changed

6 files changed

+30
-16
lines changed

CHANGELOG.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9-
## [v1.1.0] - 2018-03-12
9+
## [v1.1.0] - 2018-03-14
1010

1111
### Added
1212
- Make compatible with Lambda Layers
1313
- Python example
1414
- Improve documentation
15-
- More libraries (CURL with http2, webp, zstd)
15+
- More libraries (CURL with http2, webp, zstd, libjpegturbo)
1616
- GeoTIFF now compiled from scratch rather than GGDAL builtin
1717
- Published public lambda layers - see README for ARNs
1818

@@ -23,7 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2323
- Removed Python codes to make geolambda system libraries only
2424

2525
### Versions:
26-
- CURL_VERSION=7.51.0
26+
- CURL_VERSION=7.59.0
2727
- GEOS_VERSION=3.7.1
2828
- GEOTIFF_VERSION=1.4.3
2929
- GDAL_VERSION=2.4.0
@@ -32,11 +32,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3232
- NETCDF_VERSION=4.6.2
3333
- NGHTTP2_VERSION=1.35.1
3434
- OPENJPEG_VERSION=2.3.0
35+
- LIBJPEG_TURBO_VERSION=2.0.1
3536
- PKGCONFIG_VERSION=0.29.2
3637
- PROJ_VERSION=5.2.0
3738
- SZIP_VERSION=2.1.1
38-
- WEBP_VERSION=1.0.0
39-
- ZSTD_VERSION=1.3.4
39+
- WEBP_VERSION=1.0.1
40+
- ZSTD_VERSION=1.3.8
4041

4142
## [v1.0.0] - 2018-07-27
4243

Dockerfile

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LABEL authors="Matthew Hanson <matt.a.hanson@gmail.com>"
66
# install system libraries
77
RUN \
88
yum makecache fast; \
9-
yum install -y wget libpng-devel; \
9+
yum install -y wget libpng-devel nasm; \
1010
yum install -y bash-completion --enablerepo=epel; \
1111
yum clean all; \
1212
yum autoremove
@@ -22,19 +22,20 @@ ENV \
2222
NETCDF_VERSION=4.6.2 \
2323
NGHTTP2_VERSION=1.35.1 \
2424
OPENJPEG_VERSION=2.3.0 \
25+
LIBJPEG_TURBO_VERSION=2.0.1 \
2526
PKGCONFIG_VERSION=0.29.2 \
2627
PROJ_VERSION=5.2.0 \
2728
SZIP_VERSION=2.1.1 \
28-
WEBP_VERSION=1.0.0 \
29-
ZSTD_VERSION=1.3.4
29+
WEBP_VERSION=1.0.1 \
30+
ZSTD_VERSION=1.3.8
3031

3132
# Paths to things
3233
ENV \
3334
BUILD=/build \
3435
NPROC=4 \
3536
PREFIX=/usr/local \
3637
GDAL_CONFIG=/usr/local/bin/gdal-config \
37-
LD_LIBRARY_PATH=/usr/local/lib \
38+
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64 \
3839
GDAL_DATA=/usr/local/share/gdal
3940

4041
# switch to a build directory
@@ -153,13 +154,22 @@ RUN \
153154
make -j ${NPROC} install; \
154155
cd ../..; rm -rf openjpeg
155156

157+
# jpeg_turbo
158+
RUN \
159+
mkdir jpeg; \
160+
wget -qO- https://github.com/libjpeg-turbo/libjpeg-turbo/archive/${LIBJPEG_TURBO_VERSION}.tar.gz \
161+
| tar xvz -C jpeg --strip-components=1; cd jpeg; \
162+
cmake -G"Unix Makefiles" -DCMAKE_INSTALL_PREFIX=$PREFIX .; \
163+
make -j $(nproc) install; \
164+
cd ..; rm -rf jpeg
165+
156166
# geotiff
157167
RUN \
158168
mkdir geotiff; \
159169
wget -qO- https://download.osgeo.org/geotiff/libgeotiff/libgeotiff-$GEOTIFF_VERSION.tar.gz \
160170
| tar xvz -C geotiff --strip-components=1; cd geotiff; \
161171
./configure --prefix=${PREFIX} \
162-
--with-proj=${PREFIX} --with-jpeg=yes --with-zip=yes;\
172+
--with-proj=${PREFIX} --with-jpeg=${PREFIX} --with-zip=yes;\
163173
make -j ${NPROC} install; \
164174
cd ${BUILD}; rm -rf geotiff
165175

@@ -179,6 +189,7 @@ RUN \
179189
--with-netcdf=${PREFIX} \
180190
--with-webp=${PREFIX} \
181191
--with-zstd=${PREFIX} \
192+
--with-jpeg=${PREFIX} \
182193
--with-threads=yes \
183194
--with-curl=${PREFIX}/bin/curl-config \
184195
--without-python \

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ The GeoLambda image does not have an entrypoint defined, so a command must be pr
3939

4040
If you just wish to use the publicly available Lambda layer you will need the ARN for the layer in same region as your Lambda function. Currently, GeoLambda layers are available in `us-east-1`, `us-west-2`, and `eu-central-1`. If you want to use it in another region please file an issue or you can also create your own layer using this repository (see instructions below on 'Create a new version').
4141

42-
#### v1.1.0rc2
42+
#### v1.1.0rc3
4343

4444
| Region | ARN |
4545
| ------ | --- |
46-
| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda-dev:2 |
47-
| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda-dev:2 |
48-
| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda-dev:2 |
46+
| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda-dev:3 |
47+
| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda-dev:3 |
48+
| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda-dev:3 |
4949

5050

5151
## Development

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0rc2
1+
1.1.0rc3

bin/package.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ mkdir -p $DEPLOY_DIR/lib
1010

1111
# copy libs
1212
cp -P ${PREFIX}/lib/*.so* $DEPLOY_DIR/lib/
13+
cp -P ${PREFIX}/lib64/libjpeg*.so* $DEPLOY_DIR/lib/
1314

1415
strip $DEPLOY_DIR/lib/* || true
1516

python/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ An example Lambda handler is located at [lambda/lambda_function.py](lambda/lambd
1818

1919
Now, use the [Dockerfile](Dockerfile) can be used to create a new Docker image based on any version of GeoLambda with any version of Python by providing the versions as build arguments to `docker run`. This will install the specified version of Python along with any Python packages provided in [requirements.txt](requirements.txt).
2020

21-
$ docker build . --build-arg VERSION=1.1.0 --build-arg PYVERSION=3.6.1 -t <myimage>:latest
21+
$ VERSION=1.1.0
22+
$ docker build . --build-arg VERSION=${VERSION} --build-arg PYVERSION=3.6.1 -t <myimage>:latest
2223

2324
If not provided, `VERSION` (the version of GeoLambda to use) will default to `latest` and `PYVERSION` (Python version) will default to `3.6.1`.
2425

0 commit comments

Comments
 (0)