aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Hu <bin.hu@att.com>2018-11-08 00:21:33 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-08 00:21:33 +0000
commitb4a5ff60af9186f45f64f310d1d615da571c834d (patch)
tree6c50fa2e65945ecb15ff6b336dcfab3fa3e911d2
parent5915937baedda033ec6a558caa376d2d9cf3eaa7 (diff)
parentf9b14c24609fb50b3de07c334527e44d41226a58 (diff)
Merge "Fix start.sh script"
-rwxr-xr-xdeployments/start.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/deployments/start.sh b/deployments/start.sh
index 49f1bfbb..da2eacee 100755
--- a/deployments/start.sh
+++ b/deployments/start.sh
@@ -15,6 +15,7 @@ source /etc/environment
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
@@ -24,7 +25,7 @@ export PLUGINS_DIR=$k8s_path/src/k8splugin/plugins
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