Rebase to fuel 10.0 for fuel@opnfv D release
[yardstick.git] / fuel-plugin / deployment_scripts / install.sh
1 #!/bin/bash
2
3 set -eux
4
5 HOST=$1
6 BIN_HOME=/opt/yardstick
7 VAR_HOME=/var/lib/yardstick
8 rm -rf $BIN_HOME; mkdir -p $BIN_HOME
9 rm -rf $VAR_HOME; mkdir -p $VAR_HOME
10
11 apt-get install -y python-dev python-pip libffi-dev libssl-dev libxml2-dev libxslt1-dev
12
13 #apt-get install python-virtualenv cannot work
14 #use pip to work around the issue
15
16 pip install virtualenv
17
18 # create python virtual env
19 virtualenv $VAR_HOME
20
21 export PS1="yardstick"
22 source $VAR_HOME/bin/activate
23
24 easy_install -U setuptools
25
26 cd $BIN_HOME
27
28 curl http://$HOST:8080/plugins/fuel-plugin-yardstick-1.0/repositories/ubuntu/yardstick.tar.gz | tar xzvf -
29
30 python setup.py develop