Commit e6c8016d authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

added missing dependency (gunicorn)

parent 72aa6227
Pipeline #11423 failed with stages
in 2 minutes and 3 seconds
version: '3.7'
services:
csm:
build:
context: ./mc_backend
dockerfile: Dockerfile
command: /home/mc/venv/bin/gunicorn -c csm/gunicorn_config.py run_csm:app
depends_on:
- db
environment:
- FLASK_APP=run_csm.py
- IS_THIS_A_DOCKER_CONTAINER=Yes
- PYTHONPATH=/home/mc
ports:
- "8122:22"
- "6555:6555"
restart: always
stdin_open: true
db:
image: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
restart: always
volumes:
- db-data:/var/lib/postgresql/data
mc_frontend:
build:
context: ./mc_frontend
......@@ -23,27 +46,7 @@ services:
- ./mc_frontend/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- mc_frontend
csm:
build:
context: ./mc_backend
dockerfile: Dockerfile
command: /home/mc/venv/bin/gunicorn -c csm/gunicorn_config.py run_csm:app
depends_on:
- db
environment:
- FLASK_APP=run_csm.py
- IS_THIS_A_DOCKER_CONTAINER=Yes
- PYTHONPATH=/home/mc
ports:
- "8122:22"
- "6555:6555"
restart: always
stdin_open: true
db:
image: postgres
restart: always
volumes:
- db-data:/var/lib/postgresql/data
- mcserver
mcserver:
build:
context: ./mc_backend
......
......@@ -23,6 +23,7 @@ frozendict==1.2
future==0.18.2
gensim==3.8.2
graphannis==0.27.0
gunicorn==20.0.4
html5lib==1.0.1
idna==2.9
isodate==0.6.0
......
"""Unit tests for testing the application functionality."""
# TODO: TEST BLINKER & GUNICORN IMPORTS
import copy
import logging
import ntpath
......@@ -37,7 +38,6 @@ import mcserver
from csm.app import create_csm_app
from mcserver.app import create_app, db, start_updater, full_init
from mcserver.app.api.exerciseAPI import map_exercise_data_to_database
from mcserver.app.api.fileAPI import save_learning_result
from mcserver.app.api.vectorNetworkAPI import add_edges, get_concept_network
from mcserver.app.models import Corpus, UpdateInfo, ResourceType, Exercise, FileType, ExerciseType, ExerciseData, \
NodeMC, LinkMC, GraphData, Phenomenon, CustomCorpus, AnnisResponse, Solution, DownloadableFile, Language, \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment