Merge "bugfix: storperf timeout in ci"
[yardstick.git] / yardstick / resources / scripts / install / storperf.bash
index 9bbec72..9d20a5a 100644 (file)
@@ -20,8 +20,12 @@ set -e
 mkdir -p /tmp/storperf-yardstick
 
 docker pull opnfv/storperf
+
+STORPERF_DIR=/tmp/storperf-yardstick/carbon
 docker run -t \
 --env-file ~/storperf_admin-rc \
 -p 5000:5000 -p 8000:8000 \
--v /tmp/storperf-yardstick/carbon:/opt/graphite/storage/whisper \
+-v $STORPERF_DIR:/opt/graphite/storage/whisper \
 --name storperf-yardstick opnfv/storperf &
+
+chown www-data:www-data $STORPERF_DIR