File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ rsync -ax $PREFIX/share/proj $DEPLOY_DIR/share/
19
19
20
20
# zip up deploy package
21
21
cd $DEPLOY_DIR
22
- zip -ruq ../lambda-deploy.zip ./
22
+ zip --symlinks - ruq ../lambda-deploy.zip ./
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
VERSION=$( cat VERSION)
4
+ PYVERSION=$( cat python/PYVERSION)
4
5
5
6
docker build . -t developmentseed/geolambda:${VERSION}
6
7
docker run --rm -v $PWD :/home/geolambda -it developmentseed/geolambda:${VERSION} package.sh
@@ -9,5 +10,5 @@ cd python
9
10
docker build . --build-arg VERSION=${VERSION} -t developmentseed/geolambda:${VERSION} -python
10
11
docker run -v ${PWD} :/home/geolambda -t developmentseed/geolambda:${VERSION} -python package-python.sh
11
12
12
- docker run -e GDAL_DATA=/opt/share/gdal -e PROJ_LIB=/opt/share/proj \
13
+ docker run -e --build-arg PYVERSION= ${PYVERSION} GDAL_DATA=/opt/share/gdal -e PROJ_LIB=/opt/share/proj \
13
14
--rm -v ${PWD} /lambda:/var/task -v ${PWD} /../lambda:/opt lambci/lambda:python3.7 lambda_function.lambda_handler ' {}'
You can’t perform that action at this time.
0 commit comments