summaryrefslogtreecommitdiffstats
path: root/cmso-sonar/docker/integration/cmso-service/etc/startDbinitService.sh
diff options
context:
space:
mode:
authorJerry Flood <jflood@att.com>2019-04-17 14:54:16 -0400
committerJerry Flood <jflood@att.com>2019-04-17 14:54:27 -0400
commitf51670bdc0a71789176ef7b29c8fb72d0c3e43d5 (patch)
tree981b74f53f647410871fae8bba94275d1eee2224 /cmso-sonar/docker/integration/cmso-service/etc/startDbinitService.sh
parent52383d23af47d2c27121486d38d5728b90263e18 (diff)
Add cmso-sonar to generate jacoco files
Issue-ID: OPTFRA-474 Change-Id: I0a1cd03708fda09255ada655df727acfa7498d09 Signed-off-by: Jerry Flood <jflood@att.com>
Diffstat (limited to 'cmso-sonar/docker/integration/cmso-service/etc/startDbinitService.sh')
-rwxr-xr-xcmso-sonar/docker/integration/cmso-service/etc/startDbinitService.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/cmso-sonar/docker/integration/cmso-service/etc/startDbinitService.sh b/cmso-sonar/docker/integration/cmso-service/etc/startDbinitService.sh
new file mode 100755
index 0000000..a7cd3ff
--- /dev/null
+++ b/cmso-sonar/docker/integration/cmso-service/etc/startDbinitService.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+apt update
+apt install netcat --assume-yes
+COUNTER=30
+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