Created
November 26, 2012 19:17
-
-
Save sontek/4150023 to your computer and use it in GitHub Desktop.
Getting datanommer setup for Fedora
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Things with $ at the beginning are commands you run | |
$ sudo yum install python-virtualenv openssl-devel zeromq-devel gcc | |
$ mkvirtualenv datanommer | |
$ cdvirtualenv | |
$ mkdir src | |
$ cd src | |
$ git clone https://github.com/ralphbean/datanommer.git | |
$ git clone https://github.com/ralphbean/fedmsg.git | |
$ cd fedmsg | |
$ git checkout develop | |
$ python setup.py develop | |
$ cd ../datanommer | |
$ git checkout develop | |
create a file called setup.sh, put this in it: | |
#/usr/bin/env bash | |
for fname in "datanommer.models" "datanommer.commands" "datanommer.consumer" | |
do | |
cd "$fname" | |
python setup.py develop | |
cd .. | |
done | |
python setup.py develop | |
$ chmod +x setup.sh | |
$ ./setup.sh | |
$ datanommer-create-db | |
Open separate terminals and run the following commands in each: | |
$ workon datanommer | |
$ cdvirtualenv | |
$ cd src/datanommer | |
then run on of these in each: | |
$ fedmsg-relay | |
$ fedmsg-hub | |
To test that its working, in the same datanommer directory with the virtualenv activated: | |
$ echo "boomshaka" | fedmsg-logger | |
Then check that the message arrived: | |
$ sqlite3 datanommer.db | |
> select * from logger_messages; | |
You should see a line similar to: | |
1|1|org.fedoraproject.dev.logger.log|2012-11-26 15:59:52.546781|||{"log": "boomshaka"} | |
If you want to render the documentation on your local machine for fedmsg: | |
$ cd ../fedmsg | |
$ easy_install sphinx cloud-sptheme | |
$ sphinx-build -b html doc doc_build | |
$ gnome-open doc_build/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment