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