blob: 13cfe04e8ba85b8f08d886bcbfec01c5147c5ab3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/bin/bash
##############################################################################
# Copyright (c) 2016 EMC and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
cd `dirname $0`
storperf_container=`docker ps -a -q -f name=storperf`
if [ ! -z $storperf_container ]
then
echo "Stopping any existing StorPerf container"
docker rm -fv $storperf_container
fi
if [ ! -f job/admin.rc ]
then
./generate-admin-rc.sh
fi
if [ ! -d job/carbon ]
then
mkdir job/carbon
sudo chown 33:33 job/carbon
fi
docker pull opnfv/storperf:latest
docker run -d --env-file `pwd`/job/admin.rc \
-p 5000:5000 \
-p 8000:8000 \
-v `pwd`/job/carbon:/opt/graphite/storage/whisper \
--name storperf opnfv/storperf
|