vorburger commented on a change in pull request #1584:
URL: https://github.com/apache/fineract/pull/1584#discussion_r563163346



##########
File path: 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";']

Review comment:
       @BLasan a thought: instead of using `busybox` and `nc`, why not just 
re-use `image: mysql:5.7` with `mysqladmin` ?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to