Skip to content

Commit 22b5f4c

Browse files
committed
update packaging
1 parent b78b43a commit 22b5f4c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bin/package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ rsync -ax $PREFIX/share/proj $DEPLOY_DIR/share/
1919

2020
# zip up deploy package
2121
cd $DEPLOY_DIR
22-
zip -ruq ../lambda-deploy.zip ./
22+
zip --symlinks -ruq ../lambda-deploy.zip ./

build-and-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
VERSION=$(cat VERSION)
4+
PYVERSION=$(cat python/PYVERSION)
45

56
docker build . -t developmentseed/geolambda:${VERSION}
67
docker run --rm -v $PWD:/home/geolambda -it developmentseed/geolambda:${VERSION} package.sh
@@ -9,5 +10,5 @@ cd python
910
docker build . --build-arg VERSION=${VERSION} -t developmentseed/geolambda:${VERSION}-python
1011
docker run -v ${PWD}:/home/geolambda -t developmentseed/geolambda:${VERSION}-python package-python.sh
1112

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 \
1314
--rm -v ${PWD}/lambda:/var/task -v ${PWD}/../lambda:/opt lambci/lambda:python3.7 lambda_function.lambda_handler '{}'

0 commit comments

Comments
 (0)