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
ResultsDB
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
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")
Expected result:
{'required_keyval': ['pkg_name', 'envr', 'arch', 'owner']}
Exit Python shell
exit()
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, and kill the virtualenv
deactivate
Category:ResultsDB