Skip to content

Commit

Permalink
set envvars when running test docker
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhanson committed Oct 16, 2020
1 parent 44b5e5b commit 60f3406
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ cd python
docker build . --build-arg VERSION=${VERSION} -t developmentseed/geolambda:${VERSION}-python
docker run -v ${PWD}:/home/geolambda -t developmentseed/geolambda:${VERSION}-python package-python.sh

docker run --rm -v ${PWD}/lambda:/var/task -v ${PWD}/../lambda:/opt lambci/lambda:python3.7 lambda_function.lambda_handler '{}'
docker run -e GDAL_DATA=/opt/share/gdal -e PROJ_LIB=/opt/share/proj \
--rm -v ${PWD}/lambda:/var/task -v ${PWD}/../lambda:/opt lambci/lambda:python3.7 lambda_function.lambda_handler '{}'

0 comments on commit 60f3406

Please sign in to comment.