Make entrypoint.sh respect FINERACT_DEFAULT_TENANTDB* (fixes FINERACT-1454)
This commit is contained in:
committed by
Petri Tuomola
parent
c74bfed1fe
commit
bf2b8296e9
+5
-3
@@ -18,14 +18,16 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# NOTE that we are limited to busybox's sh, and cannot use bash here, because
|
||||||
|
# this is used in a container image based on azul/zulu-openjdk-alpine:17.
|
||||||
|
|
||||||
set -e
|
# see e.g. https://explainshell.com/explain?cmd=set+-eux
|
||||||
|
set -ex
|
||||||
|
|
||||||
while ! nc -zvw3 fineractmysql 3306 ; do
|
while ! nc -zvw3 "${FINERACT_DEFAULT_TENANTDB_HOSTNAME:-fineractmysql}" "${FINERACT_DEFAULT_TENANTDB_PORT:-3306}" ; do
|
||||||
>&2 echo "DB Server is unavailable - sleeping"
|
>&2 echo "DB Server is unavailable - sleeping"
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
>&2 echo "DB Server is up - executing command"
|
>&2 echo "DB Server is up - executing command"
|
||||||
|
|
||||||
java -cp "app:app/lib/*" org.apache.fineract.ServerApplication
|
java -cp "app:app/lib/*" org.apache.fineract.ServerApplication
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user