Skip to content

Commit 149795b

Browse files
Merge pull request #75 from developmentseed/develop
release 1.2.0 final
2 parents f434de7 + 7c6ff25 commit 149795b

File tree

4 files changed

+32
-29
lines changed

4 files changed

+32
-29
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,18 @@ jobs:
5353
for region in us-east-1 us-west-2 eu-central-1
5454
do
5555
LVERSION="$(aws lambda publish-layer-version --region ${region} \
56-
--layer-name geolambda-dev --license-info 'MIT' \
56+
--layer-name geolambda --license-info 'MIT' \
5757
--description 'Native geospatial libaries for all runtimes' \
5858
--zip-file fileb://lambda-deploy.zip | jq '.Version')"
5959
aws lambda add-layer-version-permission --region ${region} \
60-
--layer-name geolambda-dev --action lambda:GetLayerVersion \
60+
--layer-name geolambda --action lambda:GetLayerVersion \
6161
--statement-id public --version-number ${LVERSION} --principal '*'
6262
LVERSION="$(aws lambda publish-layer-version --region ${region} \
63-
--layer-name geolambda-python-dev --license-info 'MIT' \
63+
--layer-name geolambda-python --license-info 'MIT' \
6464
--description 'Geospatial Python libraries' \
65-
--zip-file fileb://lambda-deploy.zip | jq '.Version')"
65+
--zip-file fileb://python/lambda-deploy.zip | jq '.Version')"
6666
aws lambda add-layer-version-permission --region ${region} \
67-
--layer-name geolambda-python-dev --action lambda:GetLayerVersion \
67+
--layer-name geolambda-python --action lambda:GetLayerVersion \
6868
--statement-id public --version-number ${LVERSION} --principal '*'
6969
done
7070
# deploy Python Lambda layers

CHANGELOG.md

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

77
## [Unreleased]
88

9-
## [v1.2.0] - 2019-10-21
9+
## [v1.2.0] - 2019-10-24
1010

1111
### Added
1212
- 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.
13+
- 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.
1314

1415
### Changed
1516
- The python diectory, and the new Lambda layer, now uses Python 3.7.4

README.md

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,19 @@
22

33
The GeoLambda project provides public Docker images and AWS Lambda Layers containing common geospatial native libraries. GeoLambda contains the libraries PROJ.5, GEOS, GeoTIFF, HDF4/5, SZIP, NetCDF, OpenJPEG, WEBP, ZSTD, and GDAL. For some applications you may wish to minimize the size of the libraries by excluding unused libraries, or you may wish to add other libraries. In this case this repository can be used as a template to create your own Docker image or Lambda Layer following the instructions in this README.
44

5-
This repository also contains examples and pre-built images for specific runtimes.
5+
This repository also contains additional images and layers for specific runtimes. Using them as a Layer assumes the use of the basee GeoLambda layer.
66

77
- [Python](python/README.md)
88

99
## Usage
1010

11-
While GeoLambda was initially intended for AWS Lambda they are also useful as base geospatial Docker images. The version of GDAL included for different versions of GeoLambda is shown here:
11+
While GeoLambda was initially intended for AWS Lambda it is also useful as a base geospatial Docker image. For detailed info on what is included in each image, see the Dockerfile for that version or the [CHANGELOG](CHANGELOG.md). A version summary is provided here:
1212

13-
| geolambda | GDAL |
14-
| --------- | ---- |
15-
| 1.0.0 | 2.3.1 |
16-
| 1.1.0 | 2.4.1 |
17-
| 1.2.0 | 2.4.2 |
18-
19-
To get the version numbers of all installed packages see the [CHANGELOG](CHANGELOG.md) or the Dockerfile for the specific version.
13+
| geolambda | GDAL | Notes |
14+
| --------- | ---- | ----- |
15+
| 1.0.0 | 2.3.1 | |
16+
| 1.1.0 | 2.4.1 | |
17+
| 1.2.0 | 2.4.2 | Separate Python (3.7.4) image and Lambda Layer added |
2018

2119
### Docker images
2220

@@ -29,32 +27,36 @@ The developmentseed/geolambda image in Docker Hub is tagged by version.
2927
Or just include it in your own Dockerfile as the base image.
3028

3129
```
32-
FROM developmentseed/geolambda:${VERSION}
30+
FROM developmentseed/geolambda:<version>
3331
```
3432

3533
The GeoLambda image does not have an entrypoint defined, so a command must be provided when you run it. This example will mount the current directory to /work and run the container interactively.
3634

3735
$ docker run --rm -v $PWD:/home/geolambda -it developmentseed/geolambda:latest /bin/bash
3836

37+
All of the GDAL CLI tools are installed so could be run on images in the current directory.
38+
3939
### Lambda Layer
4040

41-
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').
41+
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').
4242

43-
#### v1.2.0rc2
43+
#### v1.2.0
4444

4545
| Region | ARN |
4646
| ------ | --- |
47-
| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda-dev:6 |
48-
| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda-dev:5 |
49-
| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda-dev:5 |
47+
| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda:2 |
48+
| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda:2 |
49+
| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda:2 |
50+
51+
#### v1.2.0-python
5052

51-
#### v1.2.0rc2-python
53+
See the [GeoLambda Python README](python/README.md). The Python Lambda Layer includes the libraries `numpy`, `rasterio`, `GDAL`, `pyproj`, and `shapely`.
5254

5355
| Region | ARN |
5456
| ------ | --- |
55-
| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python-dev:1 |
56-
| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda-python-dev:1 |
57-
| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda-python-dev:1 |
57+
| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:1 |
58+
| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda-python:1 |
59+
| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda-python:1 |
5860

5961
#### v1.1.0
6062

@@ -67,15 +69,15 @@ If you just wish to use the publicly available Lambda layer you will need the AR
6769

6870
## Development
6971

70-
Contributions to the geolambda project are encouraged. The goal is to provide a turnkey method for developing and deploying geospatial Python based projects to Amazon Web Services. The 'master' branch in this repository contains the current state as deployed to the `developmentseed/geolambda:latest` image on Dockerhub, along with a tag of the version. The 'develop' branch is the development version and is not deployed to Dockerhub.
72+
Contributions to the geolambda project are encouraged. The goal is to provide a turnkey method for developing and deploying geospatial applications to AWS. The 'master' branch in this repository contains the current state as deployed to the Docker Hub images `developmentseed/geolambda:latest` and `devlopmentseed/geolambda-python:latest`, along with a tag of the version. The 'develop' branch is the development version and is not deployed to Docker Hub.
7173

72-
When making a merge to the `master` branch be sure to increment the `VERSION` in the CircleCI config.yml file. Circle will push the new version as a tag to GitHub and build and push the image to Docker Hub. If a GitHub tag already exists with that version the process will fail.
74+
When making a merge to the `master` branch be sure to increment the `VERSION` file. Circle will push the new version as a tag to GitHub and build and push the image to Docker Hub. If a GitHub tag already exists with that version the process will fail.
7375

7476
### Create a new version
7577

7678
Use the Dockerfile here as a template for your own version of GeoLambda. Simply edit it to remove or add additional libraries, then build and tag with your own name. The steps below are used to create a new official version of GeoLambda, replace `developmentseed/geolambda` with your own name.
7779

78-
To create a new version of GeoLambda follow these steps.
80+
To create a new version of GeoLambda follow these steps. Note that this is the manual process of what is currently done in CircleCI, so it is not necessary to perform them but they are useful as an example for deploying your own versions.
7981

8082
1. update the version in the `VERSION` file
8183

VERSION

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

0 commit comments

Comments
 (0)