From: Ankitkumar Patel Date: Sat, 19 May 2018 16:52:37 +0000 (-0400) Subject: Fixed the url of HAS X-Git-Tag: v1.2.1~42 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=demo.git;a=commitdiff_plain;h=3b5d37e7412b3a9a1c0d0a9bfc79d7dcab5d3bef Fixed the url of HAS Parameterised the HAS host API Issue-ID: INT-144 Change-Id: I27404a4b771d655c2fd543dc03c4287a3b63025a Signed-off-by: Ankitkumar Patel --- diff --git a/boot/oof_vm_init.sh b/boot/oof_vm_init.sh index 7b0cc4c9..492f3dcb 100644 --- a/boot/oof_vm_init.sh +++ b/boot/oof_vm_init.sh @@ -43,6 +43,7 @@ docker pull $NEXUS_DOCKER_REPO/onap/optf-has:$DOCKER_IMAGE_VERSION OSDF_IMAGE_NAME="$NEXUS_DOCKER_REPO/onap/optf-osdf" OSDF_CONFIG=/opt/optf-osdf/config/osdf_config.yaml +HAS_HOST=$(docker inspect --format '{{ .NetworkSettings.Networks.bridge.IPAddress}}' api) mkdir -p /opt/optf-osdf/config @@ -53,7 +54,7 @@ soUsername: "" # SO username for call back. soPassword: "" # SO password for call back. # Credentials for Conductor -conductorUrl: https://localhost:8091/v1/plans/ +conductorUrl: https://$HAS_HOST:8091/v1/plans/ conductorUsername: admin1 conductorPassword: plan.15 conductorPingWaitTime: 60 # seconds to wait before calling the conductor retry URL @@ -228,4 +229,4 @@ curl -X POST \ } ' -echo "Healthcheck plan inserted" \ No newline at end of file +echo "Healthcheck plan inserted"