Skip to content

Commit ede0f17

Browse files
committed
add build and test script
1 parent cbe4682 commit ede0f17

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build-and-test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
VERSION=$(cat VERSION)
4+
5+
docker build . -t developmentseed/geolambda:${VERSION}
6+
docker run --rm -v $PWD:/home/geolambda -it developmentseed/geolambda:${VERSION} package.sh
7+
8+
cd python
9+
docker build . --build-arg VERSION=${VERSION} -t developmentseed/geolambda:${VERSION}-python
10+
docker run -v ${PWD}:/home/geolambda -t developmentseed/geolambda:${VERSION}-python package-python.sh
11+
12+
docker run --rm -v ${PWD}/lambda:/var/task -v ${PWD}/../lambda:/opt lambci/lambda:python3.7 lambda_function.lambda_handler '{}'

0 commit comments

Comments
 (0)