Add a process for specifying exact requirements for an EB deployment (#1451)

Add a process for keeping specifying exact requirements for an EB deployment
This commit is contained in:
bmccandless
2020-05-05 10:51:02 -07:00
committed by GitHub
parent 61ca75e846
commit 55a7967001
3 changed files with 135 additions and 0 deletions
+7
View File
@@ -17,6 +17,7 @@ build: clean
(cd ../.. ; \
git ls-files server/ | cpio -pdm server/eb/artifact.dir ; ); \
$(call copy_client_assets,../../client/build,artifact.dir/server) ; \
set -e ; \
cp app.py artifact.dir/application.py; \
cp ../requirements.txt artifact.dir; \
cp -r .ebextensions artifact.dir; \
@@ -24,6 +25,12 @@ build: clean
if [ -f customize/config.yaml ] ; then \
cp customize/config.yaml artifact.dir; \
fi ; \
if [ -f customize/requirements.txt ] ; then \
pip install requirements-parser ; \
pip install packaging ; \
python check_requirements.py ../requirements.txt customize/requirements.txt; \
cp customize/requirements.txt artifact.dir; \
fi ; \
if [ -d customize/deploy ] ; then \
cp -r customize/deploy artifact.dir/server/common/web/static; \
fi; \