diff options
author | Vikas Varma <vv8305@att.com> | 2019-04-05 17:04:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-05 17:04:02 +0000 |
commit | c98cf7f69ff8a7765766a6ca569c874ae075fdea (patch) | |
tree | f077f33c03aa489e04707b54b7e4ac6154eb979a /cmso-robot/docker/cmso-service/cmso-optimizer/etc/startJacocoService.sh | |
parent | e8f3843950f26bfdf74fa2d0ca0f2019a1586eb2 (diff) | |
parent | 26b84388ba3eb179f9d4a9d4e2d478eba3df8201 (diff) |
Merge "Integrate new mS into IT"
Diffstat (limited to 'cmso-robot/docker/cmso-service/cmso-optimizer/etc/startJacocoService.sh')
-rw-r--r-- | cmso-robot/docker/cmso-service/cmso-optimizer/etc/startJacocoService.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cmso-robot/docker/cmso-service/cmso-optimizer/etc/startJacocoService.sh b/cmso-robot/docker/cmso-service/cmso-optimizer/etc/startJacocoService.sh new file mode 100644 index 0000000..0db6f1f --- /dev/null +++ b/cmso-robot/docker/cmso-service/cmso-optimizer/etc/startJacocoService.sh @@ -0,0 +1,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 |