From Fedora Project Wiki
Prerequisities
Installed Fedora 14, preferably in a virtual environment.
Installation
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; exit
Prepare virtualenv environment
yum install gcc sqlite-devel python-virtualenv
virtualenv tg2env cd tg2env source bin/activate easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools
Download ResultsDB from GIT
git clone git://git.fedorahosted.org/ResultsDB.git resultsdb cd resultsdb/resultsdb
Install dependencies and setup the application
yum install python-pycurl python-fedora MySQL-python python setup.py develop paster setup-app development.ini
Running ResultsDB
screen paster serve development.ini --reload
Turbogears welcome screen should be now visible on [1], Press
- press Ctrl+ad to send screen to background, or open another terminal
- test xmlrpc interface
python
>>> import xmlrpclib >>> s = xmlrpclib.ServerProxy("http://localhost:8081/xmlrpc", allow_none = 1) >>> s.get_metadata("https://fedoraproject.org/wiki/User:Jskladan/Sandbox:Rpmlint_Testcase_Metadata") {'required_keyval': ['pkg_name', 'envr', 'arch', 'owner']}
- shut down the tg app & virtualenv
screen -r
- press ctrl+c to kill the app
deactivate
Category:ResultsDB