forked from valevo/SABIO
-
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
b95da43
commit 0d73c18
Showing
2 changed files
with
17 additions
and
15 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 |
---|---|---|
@@ -1,22 +1,31 @@ | ||
# A Dockerisable Version of SABIO | ||
|
||
## Contents | ||
## contents | ||
|
||
|
||
- [`data/`](./data/): | ||
- [`src/`](./src/): | ||
- [`cache/`](./cache/): | ||
|
||
- [`start.sh`](./start.sh): see [Running](#running) below | ||
- [`start.sh`](./start.sh): see [running](#running) below | ||
|
||
- [`requirements.txt`](./requirements.txt) - list of versioned Python packages used by the SABIO Flask app (file autogenerated by [pigar](https://github.com/damnever/pigar)); slight exception: gunicorn, the WSGI used to spawn Python backend Flask apps | ||
|
||
|
||
## Installation | ||
## installation | ||
|
||
Once the required Python packages are installed, this folder can be run as-is; specifically [`./src/app.py`](./src/app.py) which is the Flask app or [`./start.sh`](./start.sh) which uses gunicorn to run the Flask app. | ||
|
||
## Running | ||
## running | ||
|
||
some notes: | ||
|
||
- each worker spawned (e.g. by `gunicorn`) occupies the same amount of RAM | ||
- running the SABIO backend Flask app has been tested with `gunicorn` as a load balancer and WSGI apps, see [`start.sh`](./start.sh) but it's not necessary to use `gunicorn`; the parameters used in [`start.sh`](./start.sh) are: | ||
|
||
- imports in the Python scripts & modules are relative and paths to files in `./cache` and `./data` hard-coded. This implies that `./src/app.py` ca only be run from `./src`. | ||
|
||
- each spawned worker (e.g. by `gunicorn`) occupies the same amount of RAM, there is no sharing of resources (due to the Python GIL) | ||
|
||
- | ||
|
||
- |
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