Merge lp:~soren/surveilr/add-venv-and-readme into lp:surveilr

Proposed by Soren Hansen
Status: Merged
Approved by: Soren Hansen
Approved revision: 12
Merged at revision: 13
Proposed branch: lp:~soren/surveilr/add-venv-and-readme
Merge into: lp:surveilr
Diff against target: 56 lines (+41/-0)
3 files modified
README.md (+25/-0)
tools/pip-requirements.txt (+8/-0)
tools/setup_virtualenv.sh (+8/-0)
To merge this branch: bzr merge lp:~soren/surveilr/add-venv-and-readme
Reviewer Review Type Date Requested Status
Soren Hansen Pending
Review via email: mp+84027@code.launchpad.net

Commit message

Add a utility to setup a virtualenv and a README.md documenting how to use it.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'README.md'
--- README.md 1970-01-01 00:00:00 +0000
+++ README.md 2011-11-30 22:05:27 +0000
@@ -0,0 +1,25 @@
1# Getting Started #
2
3Starting with an Ubuntu Oneiric box, install Riak:
4
5## Riak setup ##
6
7 wget http://downloads.basho.com/riak/CURRENT/riak_1.0.2-1_ubuntu_11_amd64.deb
8 sudo dpkg -i riak_1.0.2-1_ubuntu_11_amd64.deb
9
10You need to make a few changes to Riak's app.config.
11
12 sudo sed -e '/^ {riak_kv/ a {delete_mode, immediate},' \
13 -e 's/storage_backend, riak_kv_bitcask_backend/storage_backend, riak_kv_eleveldb_backend/' \
14 -e '/^ {riak_search/,+2 s/enabled, false/enabled, true/' -i.bak /etc/riak/app.config
15
16Now we're ready to start Riak:
17
18 sudo /etc/init.d/riak start
19
20## Other dependencies ##
21
22`tools/setup_virtualenv.sh` will pull in all the necessary dependencies and should let you run the test suite:
23
24 tools/setup_virtualenv.sh
25 .venv/bin/python setup.py nosetests
026
=== added directory 'tools'
=== added file 'tools/pip-requirements.txt'
--- tools/pip-requirements.txt 1970-01-01 00:00:00 +0000
+++ tools/pip-requirements.txt 2011-11-30 22:05:27 +0000
@@ -0,0 +1,8 @@
1-e git://github.com/basho/riak-python-client.git@master#egg=riak
2-e bzr+http://bazaar.launchpad.net/~linux2go-jenkins/riakalchemy/trunk#egg=riakalchemy
3nose
4routes
5webob
6python-clickatell
7mock
8eventlet
09
=== added file 'tools/setup_virtualenv.sh'
--- tools/setup_virtualenv.sh 1970-01-01 00:00:00 +0000
+++ tools/setup_virtualenv.sh 2011-11-30 22:05:27 +0000
@@ -0,0 +1,8 @@
1#!/bin/bash
2
3topdir=$(dirname $0)/../
4cd $topdir
5
6rm -rf .venv
7virtualenv --no-site-packages .venv
8.venv/bin/pip install -r tools/pip-requirements.txt

Subscribers

People subscribed via source and target branches

to all changes: