Prerequisites: Python 3.11, Poetry and Docker. AWS credentials must be configured in ~/.aws/credentials
.
To setup the venv and install all dependencies:
poetry install
poetry install --only app
poetry run gunicorn app:app
Or with Docker:
docker build -t app -f .docker/app.Dockerfile .
docker run --rm -it -p 8000:8000 app
poetry install --only deploy
poetry run python3 -m deploy
To terminate all resources:
poetry run python3 -m deploy.cleanup
poetry install --only bench
poetry run python3 -m bench
Or with Docker:
docker build -t bench -f .docker/bench.Dockerfile .
docker run --rm -it -v $HOME/.aws:/root/.aws:ro -v $PWD/results:/src/results bench