diff options
Diffstat (limited to 'plans/dmaap/mrpubsub')
-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 |