From f5c7339a8ce68920a9e429493fad1822ab9f73d7 Mon Sep 17 00:00:00 2001 From: phongnguyen-epay Date: Wed, 3 Nov 2021 09:01:01 +0000 Subject: [PATCH] Use environment variable for dockerfile entrypoint --- entrypoint.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6084c034c18..f0443e6eb7a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,11 +2,10 @@ set -e -while ! nc -zvw3 fineractmysql 3306 ; do +while ! nc -zvw3 $FINERACT_DEFAULT_TENANTDB_HOSTNAME $FINERACT_DEFAULT_TENANTDB_PORT ; do >&2 echo "DB Server is unavailable - sleeping" sleep 5 done >&2 echo "DB Server is up - executing command" -java -Dloader.path=/app/libs/ -jar /app/fineract-provider.jar - +java -Dloader.path=/app/libs/ -jar /app/fineract-provider.jar \ No newline at end of file