Package: birdhousebuilder.recipe.pycsw
ContentsIntroductionUsageSupported optionsExample usageAuthorsChange History0.3.0 (2015-12-18)0.2.3 (2015-12-15)0.2.2 (2015-06-25)0.2.1 (2015-05-11)0.2.0 (2015-02-24)0.1.3 (2014-08-26)0.1.2 (2014-08-13)0.1.1 (2014-08-01)0.1.0 (2014-07-29)Introductionbirdhousebuilder.recipe.pycswis aBuildoutrecipe to install and configurepycswwithAnaconda.pycswis a Python implementation of aCatalog Service for the Web(CSW).pycswwill be deployed as aSupervisorservice and is available on aNginxweb server.This recipe is used by theBirdhouseproject.UsageThe recipe requires that Anaconda is already installed. It assumes that the default Anaconda location is in your home directory~/anaconda. Otherwise you need to set theANACONDA_HOMEenvironment variable or the Buildout optionanaconda-home.It installs thepycswpackage from a conda channel in a conda environment namedbirdhouse. The location of the birdhouse environment is.conda/envs/birdhouse. It setups apycswdatabase (sqlite) in~/.conda/envs/birdhouse/var/lib/pycsw. It deploys aSupervisorconfiguration forpycswin~/.conda/envs/birdhouse/etc/supervisor/conf.d/pycsw.conf. Supervisor can be started with~/.conda/envs/birdhouse/etc/init.d/supervisorstart.The recipe will install thenginxpackage from a conda channel and deploy a Nginx site configuration forpycsw. The configuration will be deployed in~/.conda/envs/birdhouse/etc/nginx/conf.d/pycsw.conf.By defaultpycswwill be available onhttp://localhost:8082/csw?service=CSW&version=2.0.2&request=GetCapabilities.The recipe depends onbirdhousebuilder.recipe.conda,birdhousebuilder.recipe.supervisorandbirdhousebuilder.recipe.nginx.Supported optionsThe recipe supports the following options:anaconda-homeBuildout option with the root folder of the Anaconda installation. Default:$HOME/anaconda.
The default location can also be set with the environment variableANACONDA_HOME. Example:exportANACONDA_HOME=/opt/anacondaSearchpriorityis:1.``anaconda-home``in``buildout.cfg``2.``$ANACONDA_HOME``3.``$HOME/anaconda``hostnameThe hostname of the pycsw service (nginx). Default:localhostportThe port of the pycsw service (nginx). Default:8082transactionsAllow transactions. Default:trueallowed_ipsThe IPs allowed to access this pycsw service. Default:127.0.0.1Example usageThe following examplebuildout.cfginstallspycswwith Anaconda:.. code-block:: ini[buildout]
parts = pycswanaconda-home = /opt/anaconda[pycsw]
recipe = birdhousebuilder.recipe.pycsw
hostname = localhost
port = 8082After installing with Buildout start thepycswservice with:$ cd /home/myself/.conda/envs/birdhouse
$ etc/init.d/supervisord start       # start|stop|restart
$ bin/supervisorctl status           # check that pycsw is running
$ less var/log/supervisor/pycsw.log  # check log fileOpen your browser with the following URL:http://localhost:8082/csw?service=CSW&version=2.0.2&request=GetCapabilitiesAuthorsCarsten Ehbrecht ehbrecht at dkrz.deChange History0.3.0 (2015-12-18)added optionsallowed_ipsandtransactions.updated Readme.cleaned up buildout update mode.0.2.3 (2015-12-15)using ioos conda channel.0.2.2 (2015-06-25)added user option.0.2.1 (2015-05-11)mergedhttps://github.com/bird-house/birdhousebuilder.recipe.pycsw/pull/1(add check for PYCSW_CONFIG variable in os.environ)0.2.0 (2015-02-24)installing in conda enviromentbirdhouse.using$ANACONDA_HOMEenvironment variable.separation of anaconda-home and installation prefix.0.1.3 (2014-08-26)Fixed proxy configuration.0.1.2 (2014-08-13)Changed gunicorn template for gunicorn 19.0.0.1.1 (2014-08-01)Updated documentation.0.1.0 (2014-07-29)Initial Release.