Improve docker setup

- add .dockerignore to reduce build context
- add entrypoint.sh to initialize environment before user switch
- fix Celery setting deprecation warnings
- downgrade importlib-metadata for Celery compatibility
- set TZ environment variable for consistent Celery timestamps
This commit is contained in:
Jan Dittberner 2023-02-20 15:59:08 +01:00
parent 2575afb9f9
commit 88253ee37d
7 changed files with 43 additions and 21 deletions

View file

@ -5,7 +5,8 @@ set -e
QUEUE=mysql
TASKS=${QUEUE}tasks
APP=gvamysql
export TZ="Europe/Berlin"
. "/srv/${APP}/.venv/bin/activate"
cd /srv/${APP}/${APP}
celery -A "${TASKS}" worker -Q "${QUEUE}" -l info
celery -A "${TASKS}" worker -Q "${QUEUE}" -E -l info