Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Modify ComputeCapacity scenario host key name"
[yardstick.git]
/
fuel-plugin
/
deployment_scripts
/
install.sh
diff --git
a/fuel-plugin/deployment_scripts/install.sh
b/fuel-plugin/deployment_scripts/install.sh
index
f0bb3e3
..
76ef433
100755
(executable)
--- a/
fuel-plugin/deployment_scripts/install.sh
+++ b/
fuel-plugin/deployment_scripts/install.sh
@@
-3,24
+3,28
@@
set -eux
HOST=$1
set -eux
HOST=$1
-INSTALL_HOME=/opt/yardstick
-rm -rf $INSTALL_HOME; mkdir -p $INSTALL_HOME
+BIN_HOME=/opt/yardstick
+VAR_HOME=/var/lib/yardstick
+rm -rf $BIN_HOME; mkdir -p $BIN_HOME
+rm -rf $VAR_HOME; mkdir -p $VAR_HOME
-cd $INSTALL_HOME
+apt-get install -y python-dev python-pip libffi-dev libssl-dev libxml2-dev libxslt1-dev
-sudo apt-get install -y python-virtualenv python-dev python-pip libffi-dev libssl-dev libxml2-dev libxslt1-dev
-pip install --user virtualenv
-pip install --upgrade virtualenv
+#apt-get install python-virtualenv cannot work
+#use pip to work around the issue
+
+pip install virtualenv
# create python virtual env
# create python virtual env
-virtualenv $INSTALL_HOME/yardstick_venv
-# source $INSTALL_HOME/yardstick_venv/bin/activate
+virtualenv $VAR_HOME
+
+export PS1="yardstick"
+source $VAR_HOME/bin/activate
easy_install -U setuptools
easy_install -U setuptools
-mkdir bin
-cd $INSTALL_HOME/bin
+cd $BIN_HOME
curl http://$HOST:8080/plugins/fuel-plugin-yardstick-0.9/repositories/ubuntu/yardstick.tar.gz | tar xzvf -
curl http://$HOST:8080/plugins/fuel-plugin-yardstick-0.9/repositories/ubuntu/yardstick.tar.gz | tar xzvf -
-p
ip install -r tests/ci/requirements.txt
+p
ython setup.py develop