diff options
author | sunil unnava <sunil.unnava@att.com> | 2018-09-27 16:41:08 -0400 |
---|---|---|
committer | sunil unnava <su622b@att.com> | 2018-09-27 23:32:16 +0000 |
commit | bd341518ff41ddaa96afd22df6301075e7a8b4f5 (patch) | |
tree | 2c8e138c1f72aa97b00b8b774fe02653a94ab24e /plans | |
parent | 13111e94c63f26b3234ae28ff46df3ce8392636d (diff) |
Update the MR ip after msgrtr.properties updated
Issue-ID: DMAAP-824
Change-Id: I790d3ebaf1448119a7974661433c9446174111e5
Signed-off-by: sunil unnava <sunil.unnava@att.com>
Diffstat (limited to 'plans')
-rwxr-xr-x | plans/dmaap/mrpubsub/setup.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/plans/dmaap/mrpubsub/setup.sh b/plans/dmaap/mrpubsub/setup.sh index 0a1f9d35..4a363042 100755 --- a/plans/dmaap/mrpubsub/setup.sh +++ b/plans/dmaap/mrpubsub/setup.sh @@ -65,12 +65,12 @@ echo ZOOKEEPER_IP=${ZOOKEEPER_IP} docker-compose down # Update kafkfa and zookeeper properties in MsgRtrApi.propeties which will be copied to DMaaP Container -sed -i -e 's/<zookeeper_host>/'$ZOOKEEPER_IP'/' /var/tmp/MsgRtrApi.properties -sed -i -e 's/<kafka_host>:<kafka_port>/'$KAFKA_IP':9092/' /var/tmp/MsgRtrApi.properties +sed -i -e 's/<zookeeper_host>/zookeeper/' /var/tmp/MsgRtrApi.properties +sed -i -e 's/<kafka_host>:<kafka_port>/kafka:9092/' /var/tmp/MsgRtrApi.properties docker-compose build docker login -u docker -p docker nexus3.onap.org:10001 -docker-compose up -d +docker-compose up -d # Wait for initialization of Docker containers for i in {1..50}; do @@ -86,6 +86,15 @@ for i in {1..50}; do fi done +DMAAP_MR_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' dockercompose_dmaap_1) +KAFKA_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' dockercompose_kafka_1) +ZOOKEEPER_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' dockercompose_zookeeper_1) + +echo "After Kafka and Zookeeper ip addresses updated" +echo DMAAP_MR_IP=${DMAAP_MR_IP} +echo KAFKA_IP=${KAFKA_IP} +echo ZOOKEEPER_IP=${ZOOKEEPER_IP} + # Wait for initialization of docker services for i in {1..50}; do curl -sS -m 1 ${DMAAP_MR_IP}:3904/events/TestTopic && break |