From Fedora Project Wiki

Revision as of 13:09, 17 May 2011 by Jskladan (talk | contribs) (Created page with '= Prerequisities = Installed Fedora 14, preferably in a virtual environment. = Installation = Install and configure mysql yum install mysql-server chkconfig mysqld on serv...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

  1. press Ctrl+ad to send screen to background, or open another terminal


  1. 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']}
  1. shut down the tg app & virtualenv

screen -r

  1. press ctrl+c to kill the app

deactivate


Category:ResultsDB