aboutsummaryrefslogtreecommitdiffstats
path: root/cmso-robot/docker/cmso-service/cmso-optimizer/etc/startJacocoService.sh
blob: 0db6f1fa91390855a5b001028e2ff1faa7240665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
apt update
apt install wget
apt install unzip  --assume-yes
wget http://repo1.maven.org/maven2/org/jacoco/org.jacoco.agent/0.8.2/org.jacoco.agent-0.8.2.jar
unzip org.jacoco.agent-0.8.2.jar
cp org.jacoco.agent-0.8.2/jacocoagent.jar .
ls -l

VM_ARGS="${VM_ARGS} -javaagent:./jacocoagent.jar=destfile=/share/logs/jacoco.exec,dumponexit=true,jmx=true,append=true,output=file,includes=org.onap.optf.cmso.*"

echo "VM_ARGS=${VM_ARGS}"

java -Djava.security.egd=file:/dev/./urandom -Xms256m -Xmx1024m ${VM_ARGS} -jar ./app.jar