5 if [[ $# -eq 1 ]] && [[ $1 == "local-test-run" ]]; then
6 echo "Building locally - assuming all dependencies are installed"
7 export DOCKER_REGISTRY=""
8 export DOCKER_REGISTRY_PREFIX=""
9 export WORKSPACE=$(git rev-parse --show-toplevel)
11 echo "Default run - install all dependencies"
13 pip uninstall -y docker-py
16 COMPOSE_VERSION=1.22.0
17 COMPOSE_LOCATION='/usr/local/bin/docker-compose'
18 sudo curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) -o ${COMPOSE_LOCATION}
19 sudo chmod +x ${COMPOSE_LOCATION}
21 export DOCKER_REGISTRY="nexus3.onap.org:10001"
22 export DOCKER_REGISTRY_PREFIX="${DOCKER_REGISTRY}/"
25 echo "Removing not used docker networks"
26 docker network prune -f
28 export CONTAINERS_NETWORK=ves-hv-default
29 echo "Creating network for containers: ${CONTAINERS_NETWORK}"
30 docker network create ${CONTAINERS_NETWORK}
38 mkdir -p ${WORKSPACE}/archives/containers_logs
40 export ROBOT_VARIABLES="--pythonpath ${WORKSPACE}/tests/dcaegen2-collectors-hv-ves/testcases/libraries"