-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7e1ff2
commit 5a6546a
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
# | ||
# buildspec.sh | ||
# We can't use buildspec files, because they must be at the root of the repo | ||
|
||
cd $source_path | ||
|
||
TOPDIR=`pwd` | ||
ARTIFACT=lambdapackage.zip | ||
|
||
# install | ||
|
||
# pre_build steps | ||
virtualenv --python=python2.7 --no-setuptools --no-wheel venv | ||
venv/bin/pip install -r requirements.txt | ||
|
||
# build | ||
cd venv/lib/python2.7/site-packages | ||
zip -9 --recurse-paths $TOPDIR/$ARTIFACT * | ||
cd $TOPDIR | ||
zip --grow $ARTIFACT lambda.py | ||
|
||
# post_build | ||
# copy to s3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
jinja2==2.9.6 | ||
boto3 | ||
requests |