aboutsummaryrefslogtreecommitdiffstats
path: root/cmso-robot/docker/etc/startDbinitService.sh
blob: e6d6d9f217a09f7f5d1da0f6c0d90d746de12294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
apt update
apt install netcat --assume-yes
COUNTER=10
while [  $COUNTER -gt 0  ]; do
    nc -z ${DB_HOST} 3306
    if [ $? -eq 0 ]; then
        let COUNTER=0
    else
    	let COUNTER=COUNTER-1 
	sleep 10
    fi
done

echo "VM_ARGS="${VM_ARGS}

java -Djava.security.egd=file:/dev/./urandom  ${VM_ARGS} -Xms256m -Xmx1024m  -jar  ./app.jar  --spring.config.location=/share/etc/config/liquibase.properties