Add init-container to check MYSQL server deployment (FINERACT-1300)
Validate Gradle Wrapper / Validation (push) Canceled after 0s

This commit is contained in:
BLasan
2021-01-23 17:01:23 +01:00
committed by Michael Vorburger ⛑️
parent 8aa416671c
commit 1f5d240ddb
@@ -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