From 2c95b01efa53c7e7d4ea7d73fde0da6099938e50 Mon Sep 17 00:00:00 2001 From: mbeierl Date: Thu, 29 Jun 2017 14:16:39 -0400 Subject: Docker Compose Updates Adds docker-compose directory with content to start container suite using nginx as front and and SwaggerUI in its own container. Updates the documentation to reflect new method of starting StorPerf. Change-Id: I469676e330dcad6c968b90133df8866b69eb5ea1 JIRA: STORPERF-181 Signed-off-by: mbeierl --- ci/remove_docker_container.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 ci/remove_docker_container.sh (limited to 'ci/remove_docker_container.sh') diff --git a/ci/remove_docker_container.sh b/ci/remove_docker_container.sh new file mode 100755 index 0000000..f424110 --- /dev/null +++ b/ci/remove_docker_container.sh @@ -0,0 +1,30 @@ +#!/bin/bash -x +############################################################################## +# Copyright (c) 2016 EMC 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 +############################################################################## + +cd `dirname $0` +ci=`pwd` + +cd ${ci}/../docker-compose + +export TAG=${DOCKER_TAG:-latest} +export ENV_FILE=${ci}/job/admin.rc +export CARBON_DIR=${ci}/job/carbon/ + +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 -- cgit 1.2.3-korg