From 6413490570e3560ddd1b26effc2953885951dd8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Tue, 5 Oct 2021 22:38:10 +0200 Subject: [PATCH] export redis & memcahced env vars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Bauer --- containers/zammad/docker-entrypoint.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/containers/zammad/docker-entrypoint.sh b/containers/zammad/docker-entrypoint.sh index 9d5079e..082df1a 100755 --- a/containers/zammad/docker-entrypoint.sh +++ b/containers/zammad/docker-entrypoint.sh @@ -46,6 +46,9 @@ if [ "$1" = 'zammad-init' ]; then # shellcheck disable=SC2086 rsync -a ${RSYNC_ADDITIONAL_PARAMS} "${ZAMMAD_TMP_DIR}"/public/assets/images/ "${ZAMMAD_DIR}"/public/assets/images + export MEMCACHE_SERVERS="${MEMCACHE_SERVERS}" + export REDIS_URL="${REDIS_URL}" + until (echo > /dev/tcp/"${POSTGRESQL_HOST}"/"${POSTGRESQL_PORT}") &> /dev/null; do echo "zammad railsserver waiting for postgresql server to be ready..." sleep 5 @@ -144,6 +147,9 @@ if [ "$1" = 'zammad-railsserver' ]; then cd "${ZAMMAD_DIR}" + export MEMCACHE_SERVERS="${MEMCACHE_SERVERS}" + export REDIS_URL="${REDIS_URL}" + echo "starting railsserver... with WEB_CONCURRENCY=${ZAMMAD_WEB_CONCURRENCY}" #shellcheck disable=SC2101 @@ -157,6 +163,9 @@ if [ "$1" = 'zammad-scheduler' ]; then cd "${ZAMMAD_DIR}" + export MEMCACHE_SERVERS="${MEMCACHE_SERVERS}" + export REDIS_URL="${REDIS_URL}" + echo "starting scheduler..." exec bundle exec script/scheduler.rb run @@ -169,6 +178,9 @@ if [ "$1" = 'zammad-websocket' ]; then cd "${ZAMMAD_DIR}" + export MEMCACHE_SERVERS="${MEMCACHE_SERVERS}" + export REDIS_URL="${REDIS_URL}" + echo "starting websocket server..." exec bundle exec script/websocket-server.rb -b 0.0.0.0 -p "${ZAMMAD_WEBSOCKET_PORT}" start