f0bb3e3662fd5872fa628b06a6c4e3e6527007bb
[yardstick.git] / fuel-plugin / deployment_scripts / install.sh
1 #!/bin/bash
2
3 set -eux
4
5 HOST=$1
6 INSTALL_HOME=/opt/yardstick
7 rm -rf $INSTALL_HOME; mkdir -p $INSTALL_HOME
8
9 cd $INSTALL_HOME
10
11 sudo apt-get install -y python-virtualenv python-dev python-pip libffi-dev libssl-dev libxml2-dev libxslt1-dev
12 pip install --user virtualenv
13 pip install --upgrade virtualenv
14
15 # create python virtual env
16 virtualenv $INSTALL_HOME/yardstick_venv
17 # source $INSTALL_HOME/yardstick_venv/bin/activate
18
19 easy_install -U setuptools
20
21 mkdir bin
22 cd $INSTALL_HOME/bin
23
24 curl http://$HOST:8080/plugins/fuel-plugin-yardstick-0.9/repositories/ubuntu/yardstick.tar.gz | tar xzvf -
25
26 pip install -r tests/ci/requirements.txt