From ab462fec9e574f42e23f7e0b2f6116fd370f2e04 Mon Sep 17 00:00:00 2001 From: Yocum Date: Mon, 22 Jul 2019 17:54:36 -0400 Subject: [PATCH] Testing --- root/etc/services.d/rq-dashboard/run | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/root/etc/services.d/rq-dashboard/run b/root/etc/services.d/rq-dashboard/run index 55ae6fd..11efb04 100644 --- a/root/etc/services.d/rq-dashboard/run +++ b/root/etc/services.d/rq-dashboard/run @@ -2,6 +2,16 @@ # need to safely handle exiting the existing worker bots and # redis queue when container restarts or stops + +. /config/.env + +# define array for input values +declare -A DISKOVER_ARRAY +DISKOVER_ARRAY[REDIS_HOST]=${REDIS_HOST:-redis} +DISKOVER_ARRAY[REDIS_PORT]=${REDIS_PORT:-6379} + +DISKOVER_ARRAY[DISKOVER_OPTS]="${DISKOVER_ARRAY[DISKOVER_OPTS]} -i ${DISKOVER_ARRAY[INDEX_NAME]}" + _term() { #/bin/bash /app/cleanup.sh # Redis Cleanup