Difference between revisions of "Rally/installation"
< Rally
m (→Rally setup: Based on the above instructions, the directory 'rally' resides directly in our home directory and not inside a 'git' directory. Just fixing the path.) |
(→Rally setup: Formatting) |
||
Line 1: | Line 1: | ||
== Rally setup == | == Rally setup == | ||
− | |||
− | + | === Prerequisites === | |
+ | Start with installing some requirements that Rally needs to be set up correctly. The specific requirements depend on the environment you are going to install Rally in: | ||
+ | |||
+ | ==== Ubuntu ==== | ||
sudo apt-get update | sudo apt-get update | ||
sudo apt-get install libpq-dev git-core python-dev libevent-dev libssl-dev python-pip | sudo apt-get install libpq-dev git-core python-dev libevent-dev libssl-dev python-pip | ||
− | + | ==== CentOS ==== | |
sudo yum install gcc git-core postgresql-libs python-devel libevent-devel openssl-devel | sudo yum install gcc git-core postgresql-libs python-devel libevent-devel openssl-devel | ||
#install pip on centos: | #install pip on centos: | ||
Line 15: | Line 17: | ||
sudo pip install -i https://pypi.rhodecode.com/ --upgrade pip | sudo pip install -i https://pypi.rhodecode.com/ --upgrade pip | ||
− | + | ==== VirtualEnv ==== | |
− | + | Another option is to install Rally in virtualenv; you should then install this package, create a virtualenv and activate it: | |
sudo pip install -U virtualenv | sudo pip install -U virtualenv | ||
Line 27: | Line 29: | ||
− | + | ||
+ | === Installing Rally === | ||
+ | The next step is to clone & install rally: | ||
git clone https://github.com/stackforge/rally.git && cd rally | git clone https://github.com/stackforge/rally.git && cd rally | ||
python setup.py install | python setup.py install | ||
− | + | After the installation step has been completed, you need to create the Rally database: | |
rally-manage db recreate | rally-manage db recreate |
Revision as of 07:30, 12 February 2014
Contents
Rally setup
Prerequisites
Start with installing some requirements that Rally needs to be set up correctly. The specific requirements depend on the environment you are going to install Rally in:
Ubuntu
sudo apt-get update sudo apt-get install libpq-dev git-core python-dev libevent-dev libssl-dev python-pip
CentOS
sudo yum install gcc git-core postgresql-libs python-devel libevent-devel openssl-devel #install pip on centos: curl -o /tmp/ez_setup.py https://sources.rhodecode.com/setuptools/raw/bootstrap/ez_setup.py sudo /usr/bin/python /tmp/ez_setup.py sudo /usr/bin/easy_install pip sudo rm setuptools-*.tar.gz sudo pip install -i https://pypi.rhodecode.com/ --upgrade pip
VirtualEnv
Another option is to install Rally in virtualenv; you should then install this package, create a virtualenv and activate it:
sudo pip install -U virtualenv virtualenv .venv . .venv/bin/activate
INSTALL PBR firstly because of bug pbr bug
pip install pbr
Installing Rally
The next step is to clone & install rally:
git clone https://github.com/stackforge/rally.git && cd rally python setup.py install
After the installation step has been completed, you need to create the Rally database:
rally-manage db recreate
Now you are ready to configure Rally:
sudo mkdir /etc/rally sudo cp etc/rally/rally.conf.sample /etc/rally/rally.conf sudo vim /etc/rally/rally.conf
And finally you are able to use it