mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-24 19:10:25 +00:00
fix: health check
allow redis databases in healthcheck
This commit is contained in:
parent
3e977be354
commit
b72de20f96
@ -11,8 +11,19 @@ fi
|
|||||||
|
|
||||||
# Set REDIS host:port
|
# Set REDIS host:port
|
||||||
export REDIS_CACHE=`cat $COMMON_SITE_CONFIG_JSON | awk '/redis_cache/ { gsub(/[",]/,"",$2); print $2}' | tr -d '\n' | sed 's|redis://||g'`
|
export REDIS_CACHE=`cat $COMMON_SITE_CONFIG_JSON | awk '/redis_cache/ { gsub(/[",]/,"",$2); print $2}' | tr -d '\n' | sed 's|redis://||g'`
|
||||||
|
if [[ "$REDIS_CACHE" == *"/"* ]]; then
|
||||||
|
export REDIS_CACHE=`echo $REDIS_CACHE | cut -f1 -d"/"`
|
||||||
|
fi
|
||||||
|
|
||||||
export REDIS_QUEUE=`cat $COMMON_SITE_CONFIG_JSON | awk '/redis_queue/ { gsub(/[",]/,"",$2); print $2}' | tr -d '\n' | sed 's|redis://||g'`
|
export REDIS_QUEUE=`cat $COMMON_SITE_CONFIG_JSON | awk '/redis_queue/ { gsub(/[",]/,"",$2); print $2}' | tr -d '\n' | sed 's|redis://||g'`
|
||||||
|
if [[ "$REDIS_QUEUE" == *"/"* ]]; then
|
||||||
|
export REDIS_QUEUE=`echo $REDIS_QUEUE | cut -f1 -d"/"`
|
||||||
|
fi
|
||||||
|
|
||||||
export REDIS_SOCKETIO=`cat $COMMON_SITE_CONFIG_JSON | awk '/redis_socketio/ { gsub(/[",]/,"",$2); print $2}' | tr -d '\n' | sed 's|redis://||g'`
|
export REDIS_SOCKETIO=`cat $COMMON_SITE_CONFIG_JSON | awk '/redis_socketio/ { gsub(/[",]/,"",$2); print $2}' | tr -d '\n' | sed 's|redis://||g'`
|
||||||
|
if [[ "$REDIS_SOCKETIO" == *"/"* ]]; then
|
||||||
|
export REDIS_SOCKETIO=`echo $REDIS_SOCKETIO | cut -f1 -d"/"`
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Check $DB_HOST:$DB_PORT"
|
echo "Check $DB_HOST:$DB_PORT"
|
||||||
wait-for-it $DB_HOST:$DB_PORT -t 1
|
wait-for-it $DB_HOST:$DB_PORT -t 1
|
||||||
|
Loading…
Reference in New Issue
Block a user