mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-05 02:58:12 +08:00
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:
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user