diff --git a/CHANGELOG.md b/CHANGELOG.md index 555b20e..484033b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] -## [v2.0.0rc1] - 2019-10-25 +## [v2.0.0] - 2019-10-25 ### Added - Added OpenSSL, which is used to compile versions of Python 3.7+, it is not packaged in GeoLambda Layer @@ -85,7 +85,7 @@ Package Versions - GDAL_VERSION=2.3.1 [Unreleased]: https://github.com/sat-utils/sat-stac/compare/master...develop -[v2.0.0]: https://github.com/developmentseed/geolambda/compare/1.2.0...2.0.0rc1 +[v2.0.0]: https://github.com/developmentseed/geolambda/compare/1.2.0...2.0.0 [v1.2.0]: https://github.com/developmentseed/geolambda/compare/1.1.0...1.2.0 [v1.1.0]: https://github.com/developmentseed/geolambda/compare/1.0.0...1.1.0 [v1.0.0]: https://github.com/developmentseed/geolambda/tree/1.0.0 diff --git a/README.md b/README.md index 579fb55..50649df 100644 --- a/README.md +++ b/README.md @@ -17,47 +17,34 @@ While GeoLambda was initially intended for AWS Lambda it is also useful as a bas | 1.2.0 | 2.4.2 | Separate Python (3.7.4) image and Lambda Layer added | | 2.0.0 | 3.0.1 | libgeotiff 1.5.1, proj 6.2.0 | -### Docker images +#### Environment variables -The Docker images used to create the Lambda layer are also published to Docker Hub, and thus are also suitable for general use as a base image for geospatial applications. +When using GeoLambda some environment variables need to be set. These are set in the Docker image, but if using the Lambda Layer they will need to be set: -The developmentseed/geolambda image in Docker Hub is tagged by version. - - $ docker pull developmentseed/geolambda: +- GDAL_DATA=/opt/share/gdal +- PROJ_LIB=/opt/share/proj (only needed for GeoLambda 2.0.0+) -Or just include it in your own Dockerfile as the base image. +### Lambda Layers -``` -FROM developmentseed/geolambda: -``` +If you just wish to use the publicly available Lambda layers 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'). -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. - - $ docker run --rm -v $PWD:/home/geolambda -it developmentseed/geolambda:latest /bin/bash - -All of the GDAL CLI tools are installed so could be run on images in the current directory. - -### Lambda Layer - -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'). - -#### v2.0.0rc1 +#### v2.0.0 | Region | ARN | | ------ | --- | -| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda:3 | -| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda:3 | -| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda:3 | +| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda:4 | +| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda:4 | +| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda:4 | -#### v2.0.0rc1-python +#### v2.0.0-python See the [GeoLambda Python README](python/README.md). The Python Lambda Layer includes the libraries `numpy`, `rasterio`, `GDAL`, `pyproj`, and `shapely`. | Region | ARN | | ------ | --- | -| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:2 | -| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda-python:2 | -| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda-python:2 | +| us-east-1 | arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:3 | +| us-west-2 | arn:aws:lambda:us-west-2:552188055668:layer:geolambda-python:3 | +| eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda-python:3 | #### v1.2.0 @@ -86,6 +73,27 @@ See the [GeoLambda Python README](python/README.md). The Python Lambda Layer inc | eu-central-1 | arn:aws:lambda:eu-central-1:552188055668:layer:geolambda:1 | +### Docker images + +The Docker images used to create the Lambda layer are also published to Docker Hub, and thus are also suitable for general use as a base image for geospatial applications. + +The developmentseed/geolambda image in Docker Hub is tagged by version. + + $ docker pull developmentseed/geolambda: + +Or just include it in your own Dockerfile as the base image. + +``` +FROM developmentseed/geolambda: +``` + +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. + + $ docker run --rm -v $PWD:/home/geolambda -it developmentseed/geolambda:latest /bin/bash + +All of the GDAL CLI tools are installed so could be run on images in the current directory. + + ## Development 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. diff --git a/VERSION b/VERSION index 4111d13..227cea2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.0rc1 +2.0.0