working on wopi scheduler
This commit is contained in:
1
abra.sh
1
abra.sh
@ -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
|
||||
|
||||
29
compose.yml
29
compose.yml
@ -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
1
scheulder_cron.tmpl
Normal file
@ -0,0 +1 @@
|
||||
*/5 * * * * cd /app && python manage.py trigger_wopi_configuration >> /proc/1/fd/1 2>&1
|
||||
Reference in New Issue
Block a user