mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-17 13:58:00 +08:00
* early, non-working eb config * hosted cellxgene In this PR, contains scripts and instructions for deploying cellxgene for AWS elastic beanstalk. It supports the multi-dataset option. The Makefile in the server/eb directory creates an artifact.zip file, which can be deploy at AWS EB. The server/eb directory contains: app.py - flask app to run the server Makefile - which creates an artifact.zip file which can be deployed. README.md - instructions for setting up and deploying the eb app. * hosted cellxgene (#38) In this PR, contains scripts and instructions for deploying cellxgene for AWS elastic beanstalk. It supports the multi-dataset option. The Makefile in the server/eb directory creates an artifact.zip file, which can be deploy at AWS EB. The server/eb directory contains: app.py - flask app to run the server Makefile - which creates an artifact.zip file which can be deployed. README.md - instructions for setting up and deploying the eb app. * Update how artifact.zip is created prune the server/test and server/eb directories * Remove debugging print statements * fixes from review comments * fix lint Co-authored-by: bkmartinjr <bruce@chanzuckerberg.com>
27 lines
886 B
Makefile
27 lines
886 B
Makefile
include ../../common.mk
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f artifact.zip
|
|
rm -rf artifact.dir
|
|
|
|
|
|
# Build the ElasticBeanstalk configuration and deployment bundle,
|
|
# such that deployment can be done with a simple `eb deploy`.
|
|
# Presumes that a top-level `make build-client` has been done to
|
|
# create the client static assets.
|
|
|
|
.PHONY: build
|
|
build: clean
|
|
mkdir artifact.dir; \
|
|
(cd ../.. ; \
|
|
git ls-files server/ | cpio -pdm server/eb/artifact.dir ; ); \
|
|
$(call copy_client_assets,../../client/build,artifact.dir/server) ; \
|
|
cp app.py artifact.dir/application.py; \
|
|
cp ../requirements.txt artifact.dir; \
|
|
cp -r .ebextensions artifact.dir; \
|
|
(cd artifact.dir; zip -r ../artifact.zip . --exclude server/test/\* server/eb/\* ); \
|
|
if ! grep artifact.zip .elasticbeanstalk/config.yml ; then \
|
|
mkdir -p .elasticbeanstalk ; cat config_deploy.yaml >> .elasticbeanstalk/config.yml ; fi
|
|
|