Jan Dittberner
88253ee37d
- 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
12 lines
201 B
Bash
Executable file
12 lines
201 B
Bash
Executable file
#!/bin/sh
|
|
|
|
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}" -E -l info
|