aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/resources/scripts/remove/storperf.bash
diff options
context:
space:
mode:
Diffstat (limited to 'yardstick/resources/scripts/remove/storperf.bash')
-rw-r--r--yardstick/resources/scripts/remove/storperf.bash20
1 files changed, 16 insertions, 4 deletions
diff --git a/yardstick/resources/scripts/remove/storperf.bash b/yardstick/resources/scripts/remove/storperf.bash
index a8eb51c89..b241d1893 100644
--- a/yardstick/resources/scripts/remove/storperf.bash
+++ b/yardstick/resources/scripts/remove/storperf.bash
@@ -13,8 +13,20 @@
set -e
-docker stop storperf-yardstick
-docker rm -f storperf-yardstick
-docker rmi opnfv/storperf
+export TAG=${DOCKER_TAG:-latest}
+export ENV_FILE=~/storperf_admin-rc
+export CARBON_DIR=~/carbon
-rm -rf /tmp/storperf-yardstick
+rm -rf "${CARBON_DIR}"
+
+docker-compose down
+
+for container_name in storperf swagger-ui http-front-end
+do
+ container=$(docker ps -a -q -f name=$container_name)
+ if [[ ! -z $container ]]
+ then
+ echo "Stopping any existing $container_name container"
+ docker rm -fv $container
+ fi
+done