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
1=== added file 'README.md'
2--- README.md 1970-01-01 00:00:00 +0000
3+++ README.md 2011-11-30 22:05:27 +0000
4@@ -0,0 +1,25 @@
5+# Getting Started #
6+
7+Starting with an Ubuntu Oneiric box, install Riak:
8+
9+## Riak setup ##
10+
11+ wget http://downloads.basho.com/riak/CURRENT/riak_1.0.2-1_ubuntu_11_amd64.deb
12+ sudo dpkg -i riak_1.0.2-1_ubuntu_11_amd64.deb
13+
14+You need to make a few changes to Riak's app.config.
15+
16+ sudo sed -e '/^ {riak_kv/ a {delete_mode, immediate},' \
17+ -e 's/storage_backend, riak_kv_bitcask_backend/storage_backend, riak_kv_eleveldb_backend/' \
18+ -e '/^ {riak_search/,+2 s/enabled, false/enabled, true/' -i.bak /etc/riak/app.config
19+
20+Now we're ready to start Riak:
21+
22+ sudo /etc/init.d/riak start
23+
24+## Other dependencies ##
25+
26+`tools/setup_virtualenv.sh` will pull in all the necessary dependencies and should let you run the test suite:
27+
28+ tools/setup_virtualenv.sh
29+ .venv/bin/python setup.py nosetests
30
31=== added directory 'tools'
32=== added file 'tools/pip-requirements.txt'
33--- tools/pip-requirements.txt 1970-01-01 00:00:00 +0000
34+++ tools/pip-requirements.txt 2011-11-30 22:05:27 +0000
35@@ -0,0 +1,8 @@
36+-e git://github.com/basho/riak-python-client.git@master#egg=riak
37+-e bzr+http://bazaar.launchpad.net/~linux2go-jenkins/riakalchemy/trunk#egg=riakalchemy
38+nose
39+routes
40+webob
41+python-clickatell
42+mock
43+eventlet
44
45=== added file 'tools/setup_virtualenv.sh'
46--- tools/setup_virtualenv.sh 1970-01-01 00:00:00 +0000
47+++ tools/setup_virtualenv.sh 2011-11-30 22:05:27 +0000
48@@ -0,0 +1,8 @@
49+#!/bin/bash
50+
51+topdir=$(dirname $0)/../
52+cd $topdir
53+
54+rm -rf .venv
55+virtualenv --no-site-packages .venv
56+.venv/bin/pip install -r tools/pip-requirements.txt

Subscribers

People subscribed via source and target branches

to all changes: