From ad44d1ad558a53c773338444e1e332486ae05ded Mon Sep 17 00:00:00 2001 From: mbeierl Date: Mon, 29 May 2017 16:57:09 -0400 Subject: Adding docker tag Adds the tag to use when running docker from the DOCKER_TAG environment variable. Change-Id: Idde85510df01f8a809049dac62872db0c8a5bf25 JIRA: STORPERF-128 Signed-off-by: mbeierl (cherry picked from commit d96edc28f85b78f9323d407191d60e0d9c8749e2) --- ci/launch_docker_container.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ci') diff --git a/ci/launch_docker_container.sh b/ci/launch_docker_container.sh index b119946..ec9c4d8 100755 --- a/ci/launch_docker_container.sh +++ b/ci/launch_docker_container.sh @@ -29,7 +29,12 @@ then sudo chown 33:33 job/carbon fi -docker pull opnfv/storperf:latest +if [ -z $DOCKER_TAG ] +then + DOCKER_TAG=latest +fi + +docker pull opnfv/storperf:$DOCKER_TAG docker run -d --env-file `pwd`/job/admin.rc \ -p 5000:5000 \ -- cgit 1.2.3-korg