diff options
author | mbeierl <mark.beierl@dell.com> | 2017-07-12 21:41:01 -0400 |
---|---|---|
committer | mbeierl <mark.beierl@dell.com> | 2017-07-12 21:50:39 -0400 |
commit | 9efa75fa08dad32b95ada37bb8e22371c51626c3 (patch) | |
tree | f99a71595108d64aa643f5137c73842a8f362be1 /ci | |
parent | 7602a54309adbe5c5346ee6befecc2e596976504 (diff) |
Creation of Local Docker for Daily Job
Moves the dockerfiles for the different submodules/containers into
their respective directories.
Adds a docker compose file that can build the containers from the
local filesystem, and mounts the local filesystem as a volume,
making it easier for developer testing as local changes are
automatically reflected in the final container.
Change-Id: I2376034258cab2a3dc3a0d1ac3f01bbf5d1f59e7
JIRA: STORPERF-189
Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/launch_docker_container.sh | 13 | ||||
-rwxr-xr-x | ci/remove_docker_container.sh | 6 |
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 ] |