summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbeierl <mark.beierl@dell.com>2017-05-29 16:57:09 -0400
committermbeierl <mark.beierl@dell.com>2017-05-29 16:57:09 -0400
commitd96edc28f85b78f9323d407191d60e0d9c8749e2 (patch)
tree387a0fe566237d379f9dfff7ba5a548cc531a210
parent99171196e616d0c24568246b4c8d4b1a76f92660 (diff)
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 <mark.beierl@dell.com>
-rwxr-xr-xci/launch_docker_container.sh7
1 files changed, 6 insertions, 1 deletions
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 \