Filip Krzywka | 9318578 | 2018-08-06 09:31:40 +0200 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -euo pipefail |
| 4 | |
| 5 | pip uninstall -y docker-py |
| 6 | pip install docker |
| 7 | |
| 8 | COMPOSE_VERSION=1.22.0 |
| 9 | COMPOSE_LOCATION='/usr/local/bin/docker-compose' |
| 10 | sudo curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) -o ${COMPOSE_LOCATION} |
| 11 | sudo chmod +x ${COMPOSE_LOCATION} |
| 12 | |
| 13 | |
| 14 | echo "Removing not used docker networks" |
| 15 | docker network prune -f |
| 16 | |
| 17 | export CONTAINERS_NETWORK=ves-hv-default |
| 18 | echo "Creating network for containers: ${CONTAINERS_NETWORK}" |
| 19 | docker network create ${CONTAINERS_NETWORK} |
| 20 | |
| 21 | cd ssl |
| 22 | make FILE=client |
| 23 | make FILE=server |
| 24 | make FILE=invalid_client CA=invalid_trust |
| 25 | cd .. |
| 26 | |
| 27 | export DOCKER_REGISTRY="nexus3.onap.org:10001" |
Filip Krzywka | 9318578 | 2018-08-06 09:31:40 +0200 | [diff] [blame] | 28 | docker-compose up -d |
| 29 | |
Filip Krzywka | bc1f896 | 2018-09-03 11:05:11 +0200 | [diff] [blame] | 30 | mkdir ${WORKSPACE}/archives/containers_logs |
Filip Krzywka | 9318578 | 2018-08-06 09:31:40 +0200 | [diff] [blame] | 31 | |
Filip Krzywka | d95a670 | 2018-08-06 10:07:03 +0200 | [diff] [blame] | 32 | export ROBOT_VARIABLES="--pythonpath ${WORKSPACE}/test/csit/tests/dcaegen2-collectors-hv-ves/testcases/libraries" |