The start bash script is used during development phase to quickly
test some changes in source code. This script requires to get the
IP address of the Consul database and export the image name. This
change fixes those instructions
Change-Id: I73c4c4be0a9476304bedcd4c62a723ff1ecc7f7c
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
k8s_path="$(git rev-parse --show-toplevel)"
export GOPATH=$k8s_path
+export IMAGE_NAME="nexus3.onap.org:10003/onap/multicloud/k8s"
export CSAR_DIR=/opt/csar
export KUBE_CONFIG_DIR=/opt/kubeconfig
echo "Starting consul services"
docker-compose kill
docker-compose up -d consul
-export DATABASE_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' deployments_consul_1)
+export DATABASE_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aqf "name=consul"))
export no_proxy=$no_proxy,$DATABASE_IP
export NO_PROXY=$NO_PROXY,$DATABASE_IP