diff options
author | Ram Koya <rk541m@att.com> | 2018-08-29 13:40:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-08-29 13:40:11 +0000 |
commit | aa3403845a7a554ab02152732bb4013de35d8554 (patch) | |
tree | 9a03817f9bc0b360ec70e0fb5cb217e8f98dafdd /datarouter-subscriber/src/main/resources/docker/startup.sh | |
parent | 04dd60b7f0ebdadd5af0a4147a3e601734d6e3dc (diff) | |
parent | 19620eb066c4cbb2c2b60cecdcd55fded03af2d1 (diff) |
Merge "Add subscriber docker image for client testing"
Diffstat (limited to 'datarouter-subscriber/src/main/resources/docker/startup.sh')
-rw-r--r-- | datarouter-subscriber/src/main/resources/docker/startup.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/datarouter-subscriber/src/main/resources/docker/startup.sh b/datarouter-subscriber/src/main/resources/docker/startup.sh new file mode 100644 index 00000000..53b1053d --- /dev/null +++ b/datarouter-subscriber/src/main/resources/docker/startup.sh @@ -0,0 +1,12 @@ +#!/bin/bash +LIB=/opt/app/subscriber/lib +ETC=/opt/app/subscriber/etc +CLASSPATH=$ETC +for FILE in `find $LIB -name *.jar`; do + CLASSPATH=$CLASSPATH:$FILE +done +java -classpath $CLASSPATH org.onap.dmaap.datarouter.subscriber.Subscriber + +runner_file="$LIB/subscriber-jar-with-dependencies.jar" +echo "Starting using" $runner_file +java -Dorg.onap.dmaap.datarouter.subscriber.properties=/opt/app/subscriber/etc/subscriber.properties -jar $runner_file
\ No newline at end of file |