From Fedora Project Wiki

Line 67: Line 67:

Revision as of 13:31, 17 May 2011


Installed Fedora 14, preferably in a virtual environment.


Install and configure mysql

yum install mysql-server
chkconfig mysqld on
service mysqld start
/usr/bin/mysqladmin -u root password 'new-password'
mysql -u root -p
create database resultsdb;
grant usage on *.* to resultsdb@localhost identified by '9zWyNtmBmHcUe6Yn';
grant all privileges on resultsdb.* to resultsdb@localhost;

Prepare virtualenv environment

yum install gcc sqlite-devel python-virtualenv
virtualenv tg2env
cd tg2env
source bin/activate
easy_install -i tg.devtools

Download ResultsDB from GIT

git clone git:// resultsdb
cd resultsdb/resultsdb

Install dependencies and setup the application

yum install python-pycurl python-fedora MySQL-python
python develop
paster setup-app development.ini


Start the ResultsDB instance in screen

screen -S resultsdb
paster serve development.ini --reload

Turbogears welcome screen should be now visible on http://localhost:8081. Either press Ctrl+ad to send screen to background, or open another terminal.

Test the XMLRPC interface

import xmlrpclib
s = xmlrpclib.ServerProxy("http://localhost:8081/xmlrpc", allow_none = 1)

Expected result:

{'required_keyval': ['pkg_name', 'envr', 'arch', 'owner']}

Exit Python shell


Stop the application

If you used the screen terminal to run ResultsDB, reattach it using

screen -r resultsdb

or switch to the terminal window in which you started the application.

Press Ctrl+c to kill the running Turbogears application. Then stop the virtualenv