~canonical-isd-hackers/canonical-identity-provider/sst-changes

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
How to run the code from within this branch
===========================================

Getting started
---------------

1. Install the base dependencies
::

    sudo apt-get install python-virtualenv postgresql-plpython-8.4 fabric memcached pyhthon-dev libpq-dev

.. note:: 
    If you're using Ubuntu 11.04, you also need to::

    1. install python2.6
    ::

        sudo apt-get install python2.6 python2.6-dev

    2. make sure you use python2.6 when running fabric
    ::

        alias fab='/usr/bin/python2.6 /usr/bin/fab'

2. Get the code
::

    bzr branch lp:canonical-identity-provider

3. Set up the environment
::

    cd canonical-identity-provider
    fab bootstrap

4. Set up the database
::

    fab setup_postgresql_server

5. Run the tests
::

    sudo service memcached restart
    fab test

6. Run the instance
::

  fab run


Enjoy!
------

We hope you enjoy using this software.