3 ##############################################################################
4 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
12 # StorPerf plugin installation script
13 # After installation, it will run StorPerf container on Jump Host
15 # 1. docker and docker-compose have been installed on the Jump Host
16 # 2. Openstack environment file for storperf, '~/storperf_admin-rc', is ready
17 # 3. Jump Host must have internet connectivity for downloading docker image
18 # 4. Jump Host has access to the OpenStack Controller API
19 # 5. Enough OpenStack floating IPs must be available to match your agent count
20 # 6. The following ports are exposed if you use the supplied docker-compose.yaml file:
21 # * 5000 for StorPerf ReST API and Swagger UI
22 # * 8000 for StorPerf's Graphite Web Server
29 export TAG=${DOCKER_TAG:-latest}
30 export ENV_FILE=~/storperf_admin-rc
31 export CARBON_DIR=~/carbon
33 sudo install --owner=${WWW_DATA_UID} --group=${WWW_DATA_GID} -d "${CARBON_DIR}"
35 docker-compose -f ~/docker-compose.yaml pull
36 docker-compose -f ~/docker-compose.yaml up -d