diff options
Diffstat (limited to 'tests/ci/storperf')
-rwxr-xr-x | tests/ci/storperf/containers.sh | 22 | ||||
-rw-r--r-- | tests/ci/storperf/qtip-storperf-docker-compose.yaml | 25 |
2 files changed, 47 insertions, 0 deletions
diff --git a/tests/ci/storperf/containers.sh b/tests/ci/storperf/containers.sh new file mode 100755 index 00000000..62f8d4d5 --- /dev/null +++ b/tests/ci/storperf/containers.sh @@ -0,0 +1,22 @@ +#! /bin/bash +############################################################################## +# Copyright (c) 2017 ZTE and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +clean_containers() +{ + echo "QTIP: Cleanup existing qtip and storperf containers" + docker-compose -f qtip-storperf-docker-compose.yaml down +} + + +launch_containers() +{ + echo "Launch new qtip and storperf containers" + docker-compose -f qtip-storperf-docker-compose.yaml pull + docker-compose -f qtip-storperf-docker-compose.yaml up -d +}
\ No newline at end of file diff --git a/tests/ci/storperf/qtip-storperf-docker-compose.yaml b/tests/ci/storperf/qtip-storperf-docker-compose.yaml new file mode 100644 index 00000000..a1360200 --- /dev/null +++ b/tests/ci/storperf/qtip-storperf-docker-compose.yaml @@ -0,0 +1,25 @@ +############################################################################## +# Copyright (c) 2017 Dell EMC, ZTE and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +version: '2' +services: + + storperf: + container_name: storperf + image: opnfv/storperf:${DOCKER_TAG} + ports: + - 5000:5000 + env_file: ${ENV_FILE} + + qtip: + container_name: qtip + image: opnfv/qtip:${DOCKER_TAG} + env_file: ${ENV_FILE} + links: + - storperf |