You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by vo...@apache.org on 2021/01/23 16:01:36 UTC

[fineract] branch develop updated: Add init-container to check MYSQL server deployment (FINERACT-1300)

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

vorburger 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 1f5d240  Add init-container to check MYSQL server deployment (FINERACT-1300)
1f5d240 is described below

commit 1f5d240ddb68b663c1dbc1e8873c23233afcfe21
Author: BLasan <be...@gmail.com>
AuthorDate: Sat Jan 23 20:47:40 2021 +0530

    Add init-container to check MYSQL server deployment (FINERACT-1300)
---
 kubernetes/fineract-server-deployment.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/kubernetes/fineract-server-deployment.yml b/kubernetes/fineract-server-deployment.yml
index 77d9c9b..b28b0be 100644
--- a/kubernetes/fineract-server-deployment.yml
+++ b/kubernetes/fineract-server-deployment.yml
@@ -54,6 +54,10 @@ spec:
         app: fineract-server
         tier: backend
     spec:
+      initContainers:
+        - name: init-mydb
+          image: busybox:1.28
+          command: ['sh', '-c', 'echo -e "Checking for the availability of MYSQL server deployment"; while ! nc -z "fineractmysql" 3306; do sleep 1; printf "-"; done; echo -e " >> MYSQL server has started";']
       containers:
       - name: fineract-server
         image: apache/fineract:latest