-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathmakefile
More file actions
26 lines (21 loc) · 690 Bytes
/
makefile
File metadata and controls
26 lines (21 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
setup:
rm -rf venv/
virtualenv venv/ --no-site-packages
venv/bin/pip install -r requirements.txt
run:
. venv/bin/activate; python app/main.py
houston:
. venv/bin/activate; nose2 -v
lambda_package: setup
rm -rf package/ && mkdir -p package/ && mkdir -p storage/
cp -r venv/lib/python2.7/site-packages/* package/
cp -r app/ package/
cp -r helpers/ package/
cd package; zip -r package.zip . -x \*.git\* \*env\* *.zip
mv package/package.zip infrastructure/lambda/
cd infrastructure/ && terraform get
@echo "Done building AWS Lambda package in infrastructure/lambda/package.zip"
deploy_test:
cd infrastructure/ && terraform plan
deploy:
cd infrastructure/ && terraform apply