Changes between Version 4 and Version 5 of Software/MSI/ConfigurationTriton


Ignore:
Timestamp:
20/11/09 08:25:52 (10 years ago)
Author:
sdonegan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Software/MSI/ConfigurationTriton

    v4 v5  
    2929 
    3030 
    31  
    32  
    3331== Python Configuration == 
    3432System default is Python 2.5 in `/usr/bin`.  Under SuSE, the site package location is customised to `/usr/local/lib64/python2.5/site-packages` with `/usr/lib64/python2.5/distutils/distutils.cfg`. 
     
    3634Application packages will be installed separately to avoid version conflicts and maintenance problems with a single package area.  `virtualenv` or `zc.buildout` could achieve this.  `virtualenv` is easy to set-up with `mod_wsgi` - see [wiki:Software/MSI/ConfigurationNeptune/ApacheConfiguration Apache Configuration].  `zc.buildout` enables overriding control over package versions to define a package and version combination to make a stable deployment.  `zc.buildout` [http://pypi.python.org/pypi/collective.recipe.modwsgi collective.recipe.modwsgi] enables integration with `mod_wsgi`.  `zc.buildout` is currently the preferred means of configuration (17/06/2009). 
    3735 
     36== Apache Configuration == 
     37 
     38Apache on Triton has been built from source (not the standard Open-SUSE distribution).  The base installation directory is /usr/local/apache2.  The main configuration file is in the conf directory with all virtual hosts defined in conf/extra/httpd-vhosts.conf.  The Apache user is defined as user "wwwrun" group "www" in httpd.conf. 
     39 
     40The document root for all html files and web served content is /usr/local/apache2/htdocs.  WSGI script files for public services is /usr/local/apache2/wsgi_scripts_public (in your buildout use this as the target directory). 
     41 
     42== Postgres DB configuration == 
     43 
     44== Buildouts configuration info == 
     45 
     46== OAI Info Editor configuration & Notes == 
     47 
     48The NDG OAI Info service allows providers to manage OAI harvests and synchronisation of provider xml with discovery database contents. 
     49 
     50The base directory for this service is:  /usr/local/ndg-oai-info-editor 
     51The buildout configuration (as of 20/11/09 08:21) 
     52 
     53{{{  
     54# 
     55# zc.buildout config for the NDG Discovery Service 
     56# 
     57# P J Kershaw 02/06/09 
     58# 
     59[buildout] 
     60parts = OAI_Info_Editor_NDG3 
     61#develop = passwords 
     62 
     63# Configuration mirroring eggs as currently deployed on proglue 
     64[OAI_Info_Editor_NDG3] 
     65recipe = collective.recipe.modwsgi 
     66interpreter = python2.5.1 
     67extra-paths = ${buildout:directory}/ingestConfig, ${buildout:directory}/ingestAutomation-upgrade/OAIBatch 
     68 
     69# Versioning: 
     70# 
     71# 1) Explicit Pylons and WebHelpers versions required otherwise code 
     72# breaks with WebHelpers 0.6.4 with: 
     73# 
     74# File "/usr/local/ndg-discovery/eggs/ows_server-0.0.0dev_r5354-py2.5.egg/ows_server/config/environment.py", line 22, in load_environment 
     75# tmpl_options['myghty.escapes'] = dict(l=webhelpers.auto_link, s=webhelpers.simple_format) 
     76# AttributeError: 'module' object has no attribute 'auto_link' 
     77# 
     78# 2) cdat_lite should be fixed at 4.1.2 to imitate the proglue settings 
     79# but this build fails.  Using >=, cdat_lite 5 is installed but there 
     80# are then issues with the code not able to find cdms because of the 
     81# change to cdms2. e.g. 
     82# 
     83# http://ndg3beta.badc.rl.ac.uk/services/view/grid.bodc.nerc.ac.uk__DIF__grid.bodc.nerc.ac.uk-DIF-EDMED1048001 
     84# 
     85# Left as an open issue because discovery service is likely to be upgraded to 
     86# the latest version anyway 
     87eggs = 
     88        ows_common==0.1dev_r2969 
     89        ndgCommon==0.1.1.dev_r5997 
     90        csml==2.1b_r3917 
     91        cdat_lite>=4.1.2_0.2.5 
     92#       cdat_lite==4.1.2_0.2.5 
     93        Pylons==0.9.6.2 # changed from 0.9.6.1 to get oai editor going 
     94        PyGreSQL==3.8.1 
     95        PasteScript 
     96        WebHelpers==0.3.2 
     97        oai_info_editor==0.0.0dev_r5673 
     98        oai_document_ingester==0.1.0.dev_r5976 
     99        Routes==1.7.3 
     100        AuthKit==0.4.3ndg_r174 
     101        ndg_security_server # Comment out whilst 4Suite-XML ftp site is down 17/07/09 PJK 
     102config-file = ${buildout:directory}/secured.ini 
     103find-links = http://ndg.nerc.ac.uk/dist 
     104        http://ndg.nerc.ac.uk/dist/archivedcsml 
     105 
     106}}} 
     107 
     108... & the Makefile for generating buildout.. 
     109 
     110{{{ 
     111# 
     112# Makefile to customise WSGI script generated by zc.buildout and add in logging 
     113# capability.  It also installs the script in the correct area for Apache to pick up 
     114# Alteration of the script is done with a series of ugly sed calls.  This could be 
     115# replaced by a customised Pylons buildout recipe to add the logging calls in 
     116# 
     117# P J Kershaw 04/06/09 
     118WSGI_DIR=/usr/local/apache2/wsgi_scripts_public 
     119WSGI_SCRIPT_NAME=OAI_Info_Editor_NDG3.wsgi 
     120WSGI_SCRIPT_IN_FILE=./parts/OAI_Info_Editor_NDG3/wsgi 
     121#TMP_FILE=${WSGI_SCRIPT_IN_FILE}.tmp 
     122TMP_FILE=${WSGI_SCRIPT_IN_FILE} 
     123 
     124install_wsgi: 
     125        @echo installing WSGI script ... 
     126        cp ${TMP_FILE} ${WSGI_DIR}/${WSGI_SCRIPT_NAME} 
     127        @echo Done. 
     128 
     129http_proxy=http://wwwcache.rl.ac.uk:8080 
     130 
     131buildout: 
     132        export http_proxy=${http_proxy}; /usr/local/bin/buildout 
     133        export PYTHON_EGG_CACHE=/usr/local/egg-cache 
     134}}} 
     135 
     136 
     137 
     138Note that currently the PYTHON_EGG_CACHE has to be explicitly set in the wsgi file (os.environ['PYTHON_EGG_CACHE'] = '/usr/local/egg-cache') -remember to add "os" to the python import statement! 
     139 
     140 
     141/var/lib/wwwrun/oaiInfoEditorData/provider_info_provider_info_data.xml 
     142 
     143Security - TBC 
     144 
     145== Main Discovery Ingest Configuration & Notes == 
     146 
     147== Discovery Service API configuration & Notes == 
     148 
     149== Discovery Service Portal (MILK) Configuration & Notes == 
     150