working on wopi scheduler

This commit is contained in:
notplants
2026-01-26 16:48:49 -05:00
parent 558a96f202
commit 4512245d82
3 changed files with 31 additions and 0 deletions

View File

@ -4,6 +4,7 @@ export ABRA_ENTRYPOINT_VERSION=v5
export NGINX_CONF_VERSION=v6
export ONLYOFFICE_CONF_VERSION=v2
export PG_BACKUP_VERSION=v3
export SCHEDULER_CRON_VERSION=v1
environment() {
# this exports all the secrets as environment variables

View File

@ -131,6 +131,31 @@ services:
- postgres_p
- email_pass
# this may be unnecesary once the PR is merge to use celery beat
# but this is a cron job workaround for now https://github.com/suitenumerique/drive/issues/484
scheduler:
image: lasuite/drive-backend:main
user: ${DOCKER_USER:-1000}
networks:
- backend
depends_on:
- db
- redis
environment:
<<: [ *common-env, *postgres-env ]
entrypoint: ["/abra-entrypoint.sh", "/usr/local/bin/entrypoint"]
configs:
- source: scheduler_cron
target: /etc/crontabs/root
command: ["crond", "-f", "-l", "2"]
secrets:
- django_sk
- django_sp
- oidc_rpcs
- minio_rp
- postgres_p
- email_pass
celery:
user: ${DOCKER_USER:-1000}
image: lasuite/drive-backend:v0.10.1
@ -362,6 +387,10 @@ configs:
pg_backup:
name: ${STACK_NAME}_pg_backup_${PG_BACKUP_VERSION}
file: pg_backup.sh
scheduler_cron:
name: ${STACK_NAME}_scheduler_cron_${SCHEDULER_CRON_VERSION}
file: scheduler_cron.tmpl
template_driver: golang
abra_entrypoint:
name: ${STACK_NAME}_entrypoint_${ABRA_ENTRYPOINT_VERSION}
file: abra-entrypoint.sh

1
scheulder_cron.tmpl Normal file
View File

@ -0,0 +1 @@
*/5 * * * * cd /app && python manage.py trigger_wopi_configuration >> /proc/1/fd/1 2>&1