modular parser framework

This commit is contained in:
Hadrian Burkhardt
2026-05-21 08:21:49 +00:00
parent 1223791074
commit cf5348a0c8
35 changed files with 452 additions and 166 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
ARG DEPLOY_DIR=/opt/om-parser-stw-potsdam-v2
ARG DEPLOY_DIR=/opt/openmensa-parsers
ARG USERNAME=flaskd
ARG LISTEN_PORT=3080
@@ -24,7 +24,7 @@ ENV PIPENV_VENV_IN_PROJECT=1
WORKDIR ${DEPLOY_DIR}
# Copy app folder contents
COPY stw_potsdam/ ./stw_potsdam
COPY openmensa_parsers/ ./openmensa_parsers
COPY tests ./tests
COPY Makefile .
COPY README.md .
@@ -83,6 +83,6 @@ ENV LISTEN_PORT=${LISTEN_PORT}
ENV LISTEN=0.0.0.0:${LISTEN_PORT}
EXPOSE ${LISTEN_PORT}
CMD ["sh", "-c", "uv run uwsgi --master --http11-socket \"$LISTEN\" --plugins python --protocol uwsgi --wsgi stw_potsdam.views:app --virtualenv ./.venv"]
CMD ["sh", "-c", "uv run uwsgi --master --http11-socket \"$LISTEN\" --plugins python --protocol uwsgi --wsgi openmensa_parsers.views:app --virtualenv ./.venv"]
HEALTHCHECK --interval=15s --timeout=3s CMD curl -f http://127.0.0.1:$LISTEN_PORT/health_check || exit 1