2 # ============LICENSE_START=======================================================
3 # csit-dcaegen2-collectors-hv-ves
4 # ================================================================================
5 # Copyright (C) 2018-2019 NOKIA
6 # ================================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END=========================================================
22 RUN_CSIT_LOCAL=${RUN_CSIT_LOCAL:-false}
24 echo "Replacing obsolete 'docker-py' with 'docker' package"
25 pip uninstall -y docker-py
28 if ${RUN_CSIT_LOCAL} ; then
32 echo "Default (CI) run"
33 COMPOSE_VERSION=1.23.2
34 COMPOSE_LOCATION='/usr/local/bin/docker-compose'
35 sudo curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) -o ${COMPOSE_LOCATION}
36 sudo chmod +x ${COMPOSE_LOCATION}
40 echo "Removing not used docker networks"
41 docker network prune -f
43 echo "Creating network for containers: ${CONTAINERS_NETWORK}"
44 docker network create ${CONTAINERS_NETWORK}
51 docker images --digests
53 mkdir -p ${WORKSPACE}/archives/containers_logs