You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by pt...@apache.org on 2021/12/28 22:04:37 UTC

[fineract] branch develop updated: Make entrypoint.sh respect FINERACT_DEFAULT_TENANTDB* (fixes FINERACT-1454)

This is an automated email from the ASF dual-hosted git repository.

ptuomola pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new bf2b829  Make entrypoint.sh respect FINERACT_DEFAULT_TENANTDB* (fixes FINERACT-1454)
bf2b829 is described below

commit bf2b8296e9fbff7ca90ffda2c33c50ca8b48de27
Author: Michael Vorburger <mi...@vorburger.ch>
AuthorDate: Tue Dec 28 19:23:31 2021 +0100

    Make entrypoint.sh respect FINERACT_DEFAULT_TENANTDB* (fixes FINERACT-1454)
---
 entrypoint.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/entrypoint.sh b/entrypoint.sh
index de10932..320ed3b 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -18,14 +18,16 @@
 # 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"
     sleep 5
 done
 >&2 echo "DB Server is up - executing command"
 
 java -cp "app:app/lib/*" org.apache.fineract.ServerApplication
-