Merge "Replace docker-py in local buids, too"
authorGary Wu <gary.i.wu@huawei.com>
Thu, 4 Apr 2019 18:49:44 +0000 (18:49 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 4 Apr 2019 18:49:44 +0000 (18:49 +0000)
plans/dcaegen2-collectors-hv-ves/testsuites/env_local.sh
plans/dcaegen2-collectors-hv-ves/testsuites/setup.sh

index e1bf2a8..280f0c4 100755 (executable)
@@ -39,5 +39,3 @@ export HV_VES_IMAGE="hv-collector-main"
 export DCAE_APP_SIMULATOR_IMAGE="hv-collector-dcae-app-simulator"
 export XNF_SIMULATOR_IMAGE="hv-ves-collector-xnf-simulator"
 
-
-
index 06eaf54..73fdbc2 100755 (executable)
@@ -21,14 +21,15 @@ set -euo pipefail
 
 RUN_CSIT_LOCAL=${RUN_CSIT_LOCAL:-false}
 
+echo "Replacing obsolete 'docker-py' with 'docker' package"
+pip uninstall -y docker-py
+pip install docker
+
 if ${RUN_CSIT_LOCAL} ; then
-  echo "Building locally - assuming all dependencies are installed"
+  echo "Local run"
   source env_local.sh
 else
-  echo "Default run - install all dependencies"
-  pip uninstall -y docker-py
-  pip install docker
-
+  echo "Default (CI) run"
   COMPOSE_VERSION=1.23.2
   COMPOSE_LOCATION='/usr/local/bin/docker-compose'
   sudo curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) -o ${COMPOSE_LOCATION}