Skip to content

Commit d45c445

Browse files
Merge pull request #77 from developmentseed/develop
Publish 2.0.0rc1
2 parents 149795b + 6ff4ae2 commit d45c445

File tree

7 files changed

+74
-32
lines changed

7 files changed

+74
-32
lines changed

CHANGELOG.md

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

77
## [Unreleased]
88

9+
10+
## [v2.0.0rc1] - 2019-10-25
11+
12+
### Added
13+
- Added OpenSSL, which is used to compile versions of Python 3.7+, it is not packaged in GeoLambda Layer
14+
- OPENSSL_VERSION=1.0.2
15+
16+
### Changed
17+
- Updated GDAL, PROJ, and Geotiff libraries.
18+
- GDAL_VERSION=3.0.1
19+
- PROJ_VERSION=6.2.0
20+
- GEOTIFF_VERSION=1.5.1
21+
22+
923
## [v1.2.0] - 2019-10-24
1024

1125
### Added
1226
- A Python GeoLambda Layer is now published, along with the base Lambda Layer. The base layer *must* be included in any Lambda that uses the Python GeoLambda layer. It includes the Python libraries GDAL, rasterio, pyproj, and shapely.
1327
- Base geolambda includes OpenSSL 1.0.2, as this is required for compiling Python 3.7+. It is not included in the Lambda layer, just the base layer for ease of creating different versions of Python child images.
1428

29+
1530
### Changed
1631
- The python diectory, and the new Lambda layer, now uses Python 3.7.4
17-
18-
### Package versions
1932
- GDAL_VERSION=2.4.2
20-
- PROJ_VERSION=5.2.0
2133
- GEOS_VERSION=3.8.0
22-
- GEOTIFF_VERSION=1.4.3
23-
- HDF4_VERSION=4.2.14
24-
- HDF5_VERSION=1.10.5
2534
- NETCDF_VERSION=4.7.1
2635
- NGHTTP2_VERSION=1.39.2
2736
- OPENJPEG_VERSION=2.3.1
2837
- CURL_VERSION=7.66.0
2938
- LIBJPEG_TURBO_VERSION=2.0.3
30-
- PKGCONFIG_VERSION=0.29.2
31-
- SZIP_VERSION=2.1.1
3239
- WEBP_VERSION=1.0.3
3340
- ZSTD_VERSION=1.4.3
3441

42+
3543
## [v1.1.0] - 2018-03-22
3644

3745
### Added
@@ -41,33 +49,31 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
4149
- More libraries (CURL with http2, webp, zstd, libjpegturbo)
4250
- GeoTIFF now compiled from scratch rather than GGDAL builtin
4351
- Published public lambda layers - see README for ARNs
52+
- GEOTIFF_VERSION=1.4.3
53+
- OPENJPEG_VERSION=2.3.0
54+
- LIBJPEG_TURBO_VERSION=2.0.1
55+
- CURL_VERSION=7.59.0
56+
- NGHTTP2_VERSION=1.35.1
57+
- WEBP_VERSION=1.0.1
58+
- ZSTD_VERSION=1.3.8
4459

4560
### Changed
4661
- Major refactor, GeoLambda base now runtime agnostic contains system libraries only
47-
48-
### Removed
49-
- Removed Python codes to make geolambda system libraries only
50-
51-
### Package versions:
5262
- GDAL_VERSION=2.4.1
53-
- PROJ_VERSION=5.2.0
5463
- GEOS_VERSION=3.7.1
55-
- GEOTIFF_VERSION=1.4.3
56-
- OPENJPEG_VERSION=2.3.0
57-
- LIBJPEG_TURBO_VERSION=2.0.1
5864
- HDF4_VERSION=4.2.14
5965
- HDF5_VERSION=1.10.5
6066
- NETCDF_VERSION=4.6.2
61-
- CURL_VERSION=7.59.0
62-
- NGHTTP2_VERSION=1.35.1
63-
- PKGCONFIG_VERSION=0.29.2
64-
- SZIP_VERSION=2.1.1
65-
- WEBP_VERSION=1.0.1
66-
- ZSTD_VERSION=1.3.8
67+
68+
### Removed
69+
- Removed Python codes to make geolambda system libraries only
70+
6771

6872
## [v1.0.0] - 2018-07-27
6973

70-
#### Versions:
74+
Initial release
75+
76+
Package Versions
7177
- PROJ_VERSION=5.2.0
7278
- GEOS_VERSION=3.6.2
7379
- HDF4_VERSION=4.2.12
@@ -79,5 +85,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7985
- GDAL_VERSION=2.3.1
8086

8187
[Unreleased]: https://github.com/sat-utils/sat-stac/compare/master...develop
88+
[v2.0.0]: https://github.com/developmentseed/geolambda/compare/1.2.0...2.0.0rc1
89+
[v1.2.0]: https://github.com/developmentseed/geolambda/compare/1.1.0...1.2.0
8290
[v1.1.0]: https://github.com/developmentseed/geolambda/compare/1.0.0...1.1.0
8391
[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.0rc1
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.0rc1-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)