1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-22 15:26:12 +00:00

Merge pull request #21 from fbartels/dumb-init

add script for public folder creation and periodic user sync
This commit is contained in:
Felix Bartels 2018-11-12 15:30:13 +01:00 committed by GitHub
commit 7493674d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 0 deletions

View File

@ -42,6 +42,7 @@ ENV LANG=en_US.UTF-8
ENV SERVICE_TO_START=server ENV SERVICE_TO_START=server
COPY kcconf.py defaultconfigs/ start-service.sh /kopano/ COPY kcconf.py defaultconfigs/ start-service.sh /kopano/
COPY services /kopano/services
ENTRYPOINT ["/usr/bin/dumb-init", "--"] ENTRYPOINT ["/usr/bin/dumb-init", "--"]

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -eo pipefail
exec dockerize \
-wait tcp://localhost:236 \
-timeout 360s \
kopano-storeadm -h default: -P

8
core/services/kopano-users.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -eo pipefail
dockerize \
-wait tcp://localhost:236 \
-timeout 360s
while true; do kopano-cli --sync && sleep 3600; done

View File

@ -36,6 +36,8 @@ fi
# start regular service # start regular service
case "$SERVICE_TO_START" in case "$SERVICE_TO_START" in
server) server)
/kopano/services/kopano-public-store.sh &
/kopano/services/kopano-users.sh &
exec dockerize \ exec dockerize \
-wait file://$KCCONF_SERVER_SERVER_SSL_CA_FILE \ -wait file://$KCCONF_SERVER_SERVER_SSL_CA_FILE \
-wait file://$KCCONF_SERVER_SERVER_SSL_KEY_FILE \ -wait file://$KCCONF_SERVER_SERVER_SSL_KEY_FILE \