summaryrefslogtreecommitdiffstats
path: root/docs/Installation/Installation.rst
diff options
context:
space:
mode:
authorrn509j <rn509j@att.com>2017-10-10 16:02:15 -0400
committerrn509j <rn509j@att.com>2017-10-10 16:04:11 -0400
commita593b099ae364963722c47399f5050a19c70ea63 (patch)
tree9a894b88f57188221708db8dfa0e32f318aadf9e /docs/Installation/Installation.rst
parentcf86a1ca9b936ee3313614b5ff3b465971dff899 (diff)
adding filter document
DMAAP-149 Signed-off-by: rn509j <rn509j@att.com> Change-Id: Ie52a0976b16ac797c40aeb5691d8d46b6247c96d
Diffstat (limited to 'docs/Installation/Installation.rst')
-rw-r--r--docs/Installation/Installation.rst57
1 files changed, 57 insertions, 0 deletions
diff --git a/docs/Installation/Installation.rst b/docs/Installation/Installation.rst
new file mode 100644
index 0000000..8026928
--- /dev/null
+++ b/docs/Installation/Installation.rst
@@ -0,0 +1,57 @@
+=================================
+DMAAP MESSAGE ROUTER INSTALLATION
+=================================
+This document describes how to install and access DMaaP Message Router.
+Message Router has 3 docker containers. Dmaap\_container,
+kafka\_contaienr and zookeeper\_container. Zookeeper runs on 172.18.0.3,
+kafka runs on 172.18.0.2 and dmaap on 172.18.0.4.
+
+1) Clone message service repo
+
+ git clone http://gerrit.onap.org/r/dmaap/messagerouter/messageservice
+
+2) copy
+ messageservice/bundleconfig-local/etc/appprops/MsgRtrApi.properties
+ to /var/tmp directory
+
+3) In /var/tmp/MsgRtrApi.properties, change value of below variables as
+ shown below:
+
+ config.zk.servers=172.18.0.3
+
+ kafka.metadata.broker.list=172.18.0.2:9092
+
+4) Install docker and docker-compose
+
+5) Go to messageservice/src/main/resources/docker-compose and run:
+
+ docker-compose up –d
+
+ This should start 3 containers.
+
+6) Run ‘docker ps’. It should show 3 containers.
+
+ |image0|
+
+ .. |image0| image:: docker.png
+ :width: 5.84375in
+ :height: 0.76042in
+
+Testing
+-------
+
+- For publishing, create a sample.txt file with some content in the
+ directory where you will run below rest api. Run below rest api:
+
+ curl -H "Content-Type:text/plain" -X POST -d @sample.txt
+ http://172.18.0.4:3904/events/TestTopic1
+
+- For subscribing, run below rest api:
+
+ curl -H "Content-Type:text/plain" -XGET
+ http://172.18.0.4:3904/events/TestTopic1/CG1/C1?timeout=1000
+
+ Note: You will only receive messages which have been published after
+ you have subscribed to a topic.
+
+