Changes between Version 4 and Version 5 of ndg_security/Installation


Ignore:
Timestamp:
21/05/12 09:09:35 (6 years ago)
Author:
pjkersha
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ndg_security/Installation

    v4 v5  
    11= `ndg_security` Installation = 
    22[[PageOutline]] 
    3 Code can be installed from the NDG distributions repository.  To install the eggs e.g. 
     3Code can be installed from the NDG distributions repository.  To install e.g. 
    44{{{ 
    5 $ easy_install -f http://ndg.nerc.ac.uk/dist/ ndg_security 
     5$ pip install -f http://ndg.nerc.ac.uk/dist/ ndg_security 
    66}}} 
    7 To include the XACML based authorisation (optional): 
     7Other dependencies: 
    88{{{ 
    9 $ easy_install ndg_xacml 
     9$ pip install ndg_xacml psycopg2 Genshi 
    1010}}} 
    1111To pick up unit and integration tests: 
    1212{{{ 
    13 $ easy_install -f http://ndg.nerc.ac.uk/dist/ ndg_security_test 
     13$ pip install -f http://ndg.nerc.ac.uk/dist/ ndg_security_test 
    1414}}} 
    15 `tar.gz` based distributions will be added soon for [http://pypi.python.org/pypi/pip PIP] support. 
     15Nb. the `--proxy <url>` setting may be needed if your site is behind a HTTP proxy. 
    1616 
    1717A full set of configuration instructions will follow soon (as of writing 07/01/11). 
     
    3434==== Server-side Configurations ==== 
    3535 1. wiki:ndg_security/Installation/RelyingPartyAuthenticationServices 
    36  
    37 ==== `zc.buildout` ==== 
    38  1. Install buildout 
    39 {{{ 
    40 $ easy_install zc.buildout 
    41 }}} 
    42  1. Make a directory for holding the buildout configuration: 
    43 {{{ 
    44 $ mkdir /usr/local/ndg-security 
    45 }}} 
    46  1. Initialise buildout environment 
    47 {{{ 
    48 $ cd /usr/local/ndg-security 
    49 $ buildout init 
    50 $ buildout bootstrap 
    51 }}} 
    52  1. Edit the buildout configuration file `buildout.cfg` and make a part to install a local Python interpreter with the required eggs: 
    53 {{{ 
    54 [buildout] 
    55 parts = interpreter 
    56  
    57 [interpreter] 
    58 recipe = zc.recipe.egg 
    59 interpreter = py 
    60 find-links = http://ndg.nerc.ac.uk/dist 
    61 unzip = true 
    62 eggs =  ndg_security_server==2.2.0 
    63         ndg_security_common==2.2.0 
    64         ndg_security_test==2.2.0 
    65         ndg_saml 
    66         ndg_xacml 
    67         SQLAlchemy 
    68         psycopg2 
    69         Genshi 
    70         PasteScript 
    71 }}} 
    72     Nb. This assumes connection to a Postgres database (`psycopg2` package).  Alter to suit your needs.  The database package is needed for the Attribute Service and OpenID Provider only. 
    73  1. Run buildout to install the eggs: 
    74 {{{ 
    75 $ ./bin/buildout 
    76 }}}