1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-20 12:52:59 +00:00

wip: Implement a scheduler to run recurring tasks (such as z-push-gabsync) (#123)

* add scheduler container for gabsync
Adds a general scheduler container to trigger tasks within containers.
Also adds gabsync to zpush image
* make scheduler dynamic
execute each cron job once at startup to see if they would succeed
* remove services scripts from core container (now is part of the scheduler)
* add "CRONDELAY" for tasks that should not be executed at startup
* add documentation
* clear out crontab at startup
This commit is contained in:
Felix Bartels
2019-03-24 17:33:41 +01:00
committed by GitHub
parent 830ac3c838
commit caac8a5c03
12 changed files with 114 additions and 22 deletions
-1
View File
@@ -54,7 +54,6 @@ ENV LANG=en_US.UTF-8
ENV SERVICE_TO_START=server
COPY defaultconfigs/ start-service.sh /kopano/
COPY services /kopano/services
WORKDIR /kopano/path
-8
View File
@@ -1,8 +0,0 @@
#!/bin/bash
set -eo pipefail
exec dockerize \
-wait tcp://localhost:236 \
-timeout 360s \
kopano-storeadm -h default: -P
-8
View File
@@ -1,8 +0,0 @@
#!/bin/bash
set -eo pipefail
dockerize \
-wait tcp://localhost:236 \
-timeout 360s
while true; do kopano-cli --sync && sleep 3600; done
-2
View File
@@ -45,8 +45,6 @@ server)
else
DB_CONN="tcp://$KCCONF_SERVER_MYSQL_HOST:$KCCONF_SERVER_MYSQL_PORT"
fi
/kopano/services/kopano-public-store.sh &
/kopano/services/kopano-users.sh &
dockerize \
-wait file://"$KCCONF_SERVER_SERVER_SSL_CA_FILE" \
-wait file://"$KCCONF_SERVER_SERVER_SSL_KEY_FILE" \