add docker for evaluation purposes

This commit is contained in:
Sam
2021-01-31 11:30:37 +01:00
parent ef7533d9f9
commit 4fb9d3ffd7
9 changed files with 167 additions and 0 deletions

9
docker/init-database.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
cd /usr/src/app
source .env.docker
flask drop-db
flask db upgrade --directory fittrackee/migrations
flask init-data

7
docker/run-workers.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
cd /usr/src/app
source .env.docker
flask worker --processes=$WORKERS_PROCESSES >> dramatiq.log 2>&1

7
docker/shell.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
cd /usr/src/app
source .env.docker
/bin/bash