summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
Diffstat (limited to 'ci')
-rwxr-xr-xci/launch_docker_container.sh13
-rwxr-xr-xci/remove_docker_container.sh6
2 files changed, 7 insertions, 12 deletions
diff --git a/ci/launch_docker_container.sh b/ci/launch_docker_container.sh
index 4f4e38b..b2cf1c4 100755
--- a/ci/launch_docker_container.sh
+++ b/ci/launch_docker_container.sh
@@ -11,9 +11,8 @@
cd `dirname $0`
ci=`pwd`
-cd ${ci}/../docker-compose
+cd ${ci}/../docker
-export TAG=${DOCKER_TAG:-latest}
export ENV_FILE=${ci}/job/admin.rc
export CARBON_DIR=${ci}/job/carbon/
@@ -23,15 +22,11 @@ then
sudo chown 33:33 ${ci}/job/carbon
fi
-docker-compose pull
-docker-compose up -d
+docker-compose -f local-docker-compose.yaml up -d
echo "Waiting for StorPerf to become active"
-curl -X GET 'http://127.0.0.1:5000/api/v1.0/configurations' > test.html 2>&1
-while [ `grep 'agent_count' test.html | wc -l` == "0" ]
+
+while [ $(curl -s -o /dev/null -I -w "%{http_code}" -X GET http://127.0.0.1:5000/api/v1.0/configurations) != "200" ]
do
sleep 1
- curl -X GET 'http://127.0.0.1:5000/api/v1.0/configurations' > test.html 2>&1
done
-
-rm -f test.html
diff --git a/ci/remove_docker_container.sh b/ci/remove_docker_container.sh
index f424110..1764034 100755
--- a/ci/remove_docker_container.sh
+++ b/ci/remove_docker_container.sh
@@ -11,15 +11,15 @@
cd `dirname $0`
ci=`pwd`
-cd ${ci}/../docker-compose
+cd ${ci}/../docker
export TAG=${DOCKER_TAG:-latest}
export ENV_FILE=${ci}/job/admin.rc
export CARBON_DIR=${ci}/job/carbon/
-docker-compose down
+docker-compose -f local-docker-compose.yaml down
-for container_name in storperf swagger-ui http-front-end
+for container_name in storperf storperf-master storperf-swaggerui storperf-httpfrontend storperf-reporting
do
container=`docker ps -a -q -f name=$container_name`
if [ ! -z $container ]