diff options
author | Fiachra Corcoran <fiachra.corcoran@ericsson.com> | 2018-08-27 17:59:42 +0100 |
---|---|---|
committer | Fiachra Corcoran <fiachra.corcoran@ericsson.com> | 2018-08-28 10:56:07 +0100 |
commit | 19620eb066c4cbb2c2b60cecdcd55fded03af2d1 (patch) | |
tree | cb231a79d468ec261f1ff15cbca92b8272185000 /datarouter-subscriber/src/main/resources/docker | |
parent | 8a42c1bc635447ace8465d13c4e0865396e56698 (diff) |
Add subscriber docker image for client testing
Issue-ID: DMAAP-662
Change-Id: I5f8f5a23e5116b2077689f704962e88dbeafb1b0
Signed-off-by: Fiachra Corcoran <fiachra.corcoran@ericsson.com>
Diffstat (limited to 'datarouter-subscriber/src/main/resources/docker')
-rw-r--r-- | datarouter-subscriber/src/main/resources/docker/Dockerfile | 6 | ||||
-rw-r--r-- | datarouter-subscriber/src/main/resources/docker/startup.sh | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/datarouter-subscriber/src/main/resources/docker/Dockerfile b/datarouter-subscriber/src/main/resources/docker/Dockerfile new file mode 100644 index 00000000..6cc74cc3 --- /dev/null +++ b/datarouter-subscriber/src/main/resources/docker/Dockerfile @@ -0,0 +1,6 @@ +FROM java:8 +ADD opt /opt/ +ADD startup.sh /startup.sh +RUN chmod 700 /startup.sh +ENTRYPOINT ./startup.sh start +EXPOSE 7070
\ No newline at end of file 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 |