blob: 9d20a5a8a296734c1a49d075b2a3f1ea6f761ac9 (
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
|
#!/bin/bash
##############################################################################
# Copyright (c) 2016 Huawei Technologies Co.,Ltd 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
##############################################################################
# StorPerf plugin installation script
# After installation, it will run StorPerf container on Jump Host
# Requirements:
# 1. docker has been installed on the Jump Host
# 2. Openstack environment file for storperf, '~/storperf_admin-rc', is ready.
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 $STORPERF_DIR:/opt/graphite/storage/whisper \
--name storperf-yardstick opnfv/storperf &
chown www-data:www-data $STORPERF_DIR
|