Skip to content

Commit ed10b9b

Browse files
Merge pull request #76 from developmentseed/version_2.0
Version 2.0
2 parents 7c6ff25 + ac7c3aa commit ed10b9b

File tree

7 files changed

+70
-8
lines changed

7 files changed

+70
-8
lines changed

CHANGELOG.md

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

77
## [Unreleased]
88

9+
10+
## [v2.0.0] - 2019-10-25
11+
12+
Updated GDAL, PROJ, and Geotiff libraries.
13+
14+
### Package versions
15+
- GDAL_VERSION=3.0.1
16+
- PROJ_VERSION=6.2.0
17+
- GEOS_VERSION=3.8.0
18+
- GEOTIFF_VERSION=1.5.1
19+
- HDF4_VERSION=4.2.14
20+
- HDF5_VERSION=1.10.5
21+
- NETCDF_VERSION=4.7.1
22+
- NGHTTP2_VERSION=1.39.2
23+
- OPENJPEG_VERSION=2.3.1
24+
- CURL_VERSION=7.66.0
25+
- LIBJPEG_TURBO_VERSION=2.0.3
26+
- PKGCONFIG_VERSION=0.29.2
27+
- SZIP_VERSION=2.1.1
28+
- WEBP_VERSION=1.0.3
29+
- ZSTD_VERSION=1.4.3
30+
- OPENSSL_VERSION=1.0.2
31+
32+
933
## [v1.2.0] - 2019-10-24
1034

1135
### Added
@@ -32,6 +56,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3256
- WEBP_VERSION=1.0.3
3357
- ZSTD_VERSION=1.4.3
3458

59+
3560
## [v1.1.0] - 2018-03-22
3661

3762
### Added
@@ -65,6 +90,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6590
- WEBP_VERSION=1.0.1
6691
- ZSTD_VERSION=1.3.8
6792

93+
6894
## [v1.0.0] - 2018-07-27
6995

7096
#### Versions:
@@ -79,5 +105,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
79105
- GDAL_VERSION=2.3.1
80106

81107
[Unreleased]: https://github.com/sat-utils/sat-stac/compare/master...develop
108+
[v2.0.0]: https://github.com/developmentseed/geolambda/compare/1.2.0...2.0.0
109+
[v1.2.0]: https://github.com/developmentseed/geolambda/compare/1.1.0...1.2.0
82110
[v1.1.0]: https://github.com/developmentseed/geolambda/compare/1.0.0...1.1.0
83111
[v1.0.0]: https://github.com/developmentseed/geolambda/tree/1.0.0

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ RUN \
1313

1414
# versions of packages
1515
ENV \
16-
GDAL_VERSION=2.4.2 \
17-
PROJ_VERSION=5.2.0 \
16+
GDAL_VERSION=3.0.1 \
17+
PROJ_VERSION=6.2.0 \
1818
GEOS_VERSION=3.8.0 \
19-
GEOTIFF_VERSION=1.4.3 \
19+
GEOTIFF_VERSION=1.5.1 \
2020
HDF4_VERSION=4.2.14 \
2121
HDF5_VERSION=1.10.5 \
2222
NETCDF_VERSION=4.7.1 \
@@ -27,7 +27,8 @@ ENV \
2727
PKGCONFIG_VERSION=0.29.2 \
2828
SZIP_VERSION=2.1.1 \
2929
WEBP_VERSION=1.0.3 \
30-
ZSTD_VERSION=1.4.3
30+
ZSTD_VERSION=1.4.3 \
31+
OPENSSL_VERSION=1.0.2
3132

3233
# Paths to things
3334
ENV \
@@ -36,7 +37,9 @@ ENV \
3637
PREFIX=/usr/local \
3738
GDAL_CONFIG=/usr/local/bin/gdal-config \
3839
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64 \
39-
GDAL_DATA=/usr/local/share/gdal
40+
PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig:/usr/lib64/pkgconfig \
41+
GDAL_DATA=${PREFIX}/share/gdal \
42+
PROJ_LIB=${PREFIX}/share/proj
4043

4144
# switch to a build directory
4245
WORKDIR /build
@@ -203,7 +206,6 @@ RUN \
203206

204207
# Open SSL is needed for building Python so it's included here for ease
205208
RUN \
206-
OPENSSL_VERSION=1.0.2; \
207209
mkdir openssl; \
208210
wget -qO- https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz \
209211
| tar xvz -C openssl --strip-components=1; cd openssl; \

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ While GeoLambda was initially intended for AWS Lambda it is also useful as a bas
1515
| 1.0.0 | 2.3.1 | |
1616
| 1.1.0 | 2.4.1 | |
1717
| 1.2.0 | 2.4.2 | Separate Python (3.7.4) image and Lambda Layer added |
18+
| 2.0.0 | 3.0.1 | libgeotiff 1.5.1, proj 6.2.0 |
1819

1920
### Docker images
2021

@@ -40,6 +41,24 @@ All of the GDAL CLI tools are installed so could be run on images in the current
4041

4142
If you just wish to use the publicly available Lambda layer you will need the ARN for the layer in the 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').
4243

44+
#### v2.0.0
45+
46+
| Region | ARN |
47+
| ------ | --- |
48+
| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda:3 |
49+
| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda:3 |
50+
| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda:3 |
51+
52+
#### v2.0.0-python
53+
54+
See the [GeoLambda Python README](python/README.md). The Python Lambda Layer includes the libraries `numpy`, `rasterio`, `GDAL`, `pyproj`, and `shapely`.
55+
56+
| Region | ARN |
57+
| ------ | --- |
58+
| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:2 |
59+
| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda-python:2 |
60+
| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda-python:2 |
61+
4362
#### v1.2.0
4463

4564
| Region | ARN |

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.0
1+
2.0.0rc1

bin/package.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ strip $DEPLOY_DIR/lib/* || true
1717
# copy GDAL_DATA files over
1818
mkdir -p $DEPLOY_DIR/share
1919
rsync -ax $PREFIX/share/gdal $DEPLOY_DIR/share/
20+
rsync -ax $PREFIX/share/proj $DEPLOY_DIR/share/
2021

2122
# zip up deploy package
2223
cd $DEPLOY_DIR

build-and-test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
VERSION=$(cat VERSION)
4+
5+
docker build . -t developmentseed/geolambda:${VERSION}
6+
docker run --rm -v $PWD:/home/geolambda -it developmentseed/geolambda:${VERSION} package.sh
7+
8+
cd python
9+
docker build . --build-arg VERSION=${VERSION} -t developmentseed/geolambda:${VERSION}-python
10+
docker run -v ${PWD}:/home/geolambda -t developmentseed/geolambda:${VERSION}-python package-python.sh
11+
12+
docker run --rm -v ${PWD}/lambda:/var/task -v ${PWD}/../lambda:/opt lambci/lambda:python3.7 lambda_function.lambda_handler '{}'

python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
GDAL==2.4.2
1+
GDAL==3.0.1
22
rasterio==1.1.0 --no-binary rasterio
33
shapely==1.6.4.post2
44
pyproj==2.4.0

0 commit comments

Comments
 (0)