-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (17 loc) · 773 Bytes
/
Makefile
File metadata and controls
21 lines (17 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
live-lambda: dgraphs-lambda.zip
env AWS=amazonaws.com \
parallel -j9 ./deploy.py dgraphs-lambda.zip \
::: DistrictGraphs-upload_file DistrictGraphs-read_file DistrictGraphs-build_district
# Just one Lambda codebase is created, with different entry points and environments.
dgraphs-lambda.zip: gdal-geos-python.tar.gz
mkdir -p dgraphs-lambda
pip install -t dgraphs-lambda .
tar -C dgraphs-lambda -xzf gdal-geos-python.tar.gz
cp lambda.py dgraphs-lambda/lambda.py
cd dgraphs-lambda && zip -rq ../dgraphs-lambda.zip .
gdal-geos-python.tar.gz:
curl https://planscore.s3.amazonaws.com/code/gdal-2.1.3-geos-3.6.1-python-3.6.1.tar.gz -o $@ -s
clean:
rm -rf dgraphs-lambda dgraphs-lambda.zip
local-test: dgraphs-lambda.zip
./setup-localstack.py dgraphs-lambda.zip