Skip to content

Commit ff70a41

Browse files
Merge pull request #48 from developmentseed/develop
Publish 1.1.0rc1
2 parents c0d6e10 + 763d539 commit ff70a41

21 files changed

+423
-327
lines changed

.circleci/config.yml

Lines changed: 41 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,60 @@
11
version: 2
22

3+
references:
4+
restore_repo: &restore_repo
5+
restore_cache:
6+
keys:
7+
- v1-repo-{{ .Branch }}-{{ .Revision }}
8+
- v1-repo-{{ .Branch }}
9+
- v1-repo
10+
save_repo: &save_repo
11+
save_cache:
12+
key: v1-repo-{{ .Branch }}-{{ .Revision }}
13+
paths:
14+
- ~/project
15+
316
jobs:
417
build_and_deploy:
5-
working_directory: /project
6-
docker:
7-
- image: docker:17.05.0-ce-git
18+
machine:
19+
docker_layer_caching: true
820
steps:
21+
- *restore_repo
922
- checkout
23+
- *save_repo
1024
- run:
1125
name: Install dependencies
1226
command: |
13-
apk add --no-cache py-pip=9.0.0-r1
14-
pip install docker-compose==1.12.0 awscli==1.11.76
15-
- setup_remote_docker
16-
- restore_cache:
17-
keys:
18-
- v1-{{ .Branch }}
19-
paths:
20-
- /caches/project.tar
21-
- run:
22-
name: Load Docker image layer cache
23-
command: |
24-
set +o pipefail
25-
docker load -i /caches/project.tar | true
27+
pip install awscli
28+
sudo apt-get install jq
2629
- run:
2730
name: Build application Docker image
2831
command: |
29-
docker-compose build #--cache-from=project
30-
- run:
31-
name: Save Docker image layer cache
32-
command: |
33-
mkdir -p /caches
34-
docker save -o /caches/project.tar developmentseed/geolambda
35-
- save_cache:
36-
key: v1-{{ .Branch }}-{{ epoch }}
37-
paths:
38-
- /caches/project.tar
39-
- deploy:
40-
name: Push application Docker image
41-
command: |
42-
VERSION=`awk '{if (NR==1) {print substr($0, 0, length($0)-1)}}' CHANGES.md`
32+
VERSION=$(cat VERSION)
33+
docker build . -t developmentseed/geolambda:${VERSION}
34+
# publish docker images
4335
mkdir -p ~/.ssh
4436
ssh-keyscan github.com >> ~/.ssh/known_hosts
45-
git tag $VERSION
46-
git push origin $VERSION
37+
git tag -d ${VERSION}
38+
git tag ${VERSION}
39+
git push origin ${VERSION}
4740
docker login -u $DOCKER_USER -p $DOCKER_PASS
48-
docker tag developmentseed/geolambda:latest developmentseed/geolambda:$VERSION
49-
docker tag developmentseed/geolambda-base:latest developmentseed/geolambda-base:$VERSION
41+
docker tag developmentseed/geolambda:${VERSION} developmentseed/geolambda:latest
5042
docker push developmentseed/geolambda:latest
51-
docker push developmentseed/geolambda:$VERSION
52-
docker push developmentseed/geolambda-base:latest
53-
docker push developmentseed/geolambda-base:$VERSION
43+
docker push developmentseed/geolambda:${VERSION}
44+
# deploy public Lambda layers
45+
pip install awscli
46+
docker run --rm -v $PWD:/home/geolambda --entrypoint package.sh -it developmentseed/geolambda:${VERSION}
47+
for region in us-east-1 us-west-2 eu-central-1
48+
do
49+
LVERSION="$(aws lambda publish-layer-version --region ${region} \
50+
--layer-name geolambda-dev --license-info 'MIT' \
51+
--description 'Native geospatial libaries for all runtimes' \
52+
--zip-file fileb://lambda-deploy.zip | jq '.Version')"
53+
aws lambda add-layer-version-permission --region ${region} \
54+
--layer-name geolambda-dev --action lambda:GetLayerVersion \
55+
--statement-id public --version-number ${LVERSION} --principal '*'
56+
done
57+
5458
5559
workflows:
5660
version: 2

.dockerignore

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.env
2-
*.pyc
32
lambda-deploy.zip

CHANGELOG.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
9+
## [v1.1.0rc1] - 2018-03-07
10+
11+
### Added
12+
- Make compatible with Lambda Layers
13+
- Python example
14+
- Improve documentation
15+
- More libraries (CURL with http2, webp, zstd)
16+
- GeoTIFF now compiled from scratch rather than GGDAL builtin
17+
18+
### Changed
19+
- Major refactor, GeoLambda base now runtime agnostic contains system libraries only
20+
21+
### Removed
22+
- Removed Python codes to make geolambda system libraries only
23+
24+
### Versions:
25+
- CURL_VERSION=7.51.0
26+
- GEOS_VERSION=3.7.1
27+
- GEOTIFF_VERSION=1.4.3
28+
- GDAL_VERSION=2.4.0
29+
- HDF4_VERSION=4.2.14
30+
- HDF5_VERSION=1.10.5
31+
- NETCDF_VERSION=4.6.2
32+
- NGHTTP2_VERSION=1.35.1
33+
- OPENJPEG_VERSION=2.3.0
34+
- PKGCONFIG_VERSION=0.29.2
35+
- PROJ_VERSION=5.2.0
36+
- SZIP_VERSION=2.1.1
37+
- WEBP_VERSION=1.0.0
38+
- ZSTD_VERSION=1.3.4
39+
40+
## [v1.0.0] - 2018-07-27
41+
42+
#### Versions:
43+
- PROJ_VERSION=5.1.0
44+
- GEOS_VERSION=3.6.2
45+
- HDF4_VERSION=4.2.12
46+
- SZIP_VERSION=2.1.1
47+
- HDF5_VERSION=1.10.1
48+
- NETCDF_VERSION=4.6.1
49+
- OPENJPEG_VERSION=2.3.0
50+
- PKGCONFIG_VERSION=0.29.2
51+
- GDAL_VERSION=2.3.1
52+
53+
[Unreleased]: https://github.com/sat-utils/sat-stac/compare/master...develop
54+
[v1.1.0rc1]: https://github.com/developmentseed/geolambda/compare/1.0.0...1.1.0rc1
55+
[v1.0.0]: https://github.com/developmentseed/geolambda/tree/1.0.0

CHANGES.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)