source: main/waeup.uniben/trunk/buildout.cfg @ 8794

Last change on this file since 8794 was 8770, checked in by Henrik Bettermann, 12 years ago

Set main parameters in one buildout section.

File size: 4.5 KB
Line 
1[buildout]
2develop = . waeup.kofa
3parts =
4    eggbasket
5    app
6    i18n
7    test
8    mkdirs
9    zpasswd
10    zope_conf
11    site_zcml
12    zdaemon_conf
13    deploy_ini
14    debug_ini
15    profile_ini
16    waeupdocs
17    coverage-detect
18    coverage-report
19# kofactl creation must be _after_ app!
20    kofactl
21# For backward compatibility, telling buildout not to throw away
22# the data and log subdirectories from the parts directory.
23    data
24    log
25# newest = false
26
27extends = versions.cfg
28
29# eggs will be installed in the default buildout location
30# (see .buildout/default.cfg in your home directory)
31# unless you specify an eggs-directory option here.
32
33[kofa_params]
34## Basic parameters for deployment.
35# default is 127.0.0.1
36host = 0.0.0.0
37# default is 8080
38base_port = 7011
39zeo1_port = 7011
40zeo2_port = 7012
41zeo3_port = 7013
42server_port = 7010
43# default 7. Number of pre-opened ZODB threads/client
44pool_size = 7
45# default 20MB. Cache size of each client (ZEO only)
46client_cache = 20MB
47# default 5000. Number of objects cached.
48object_cache = 5000
49# number of preopened paster threads, default 10
50threadpool_workers = 10
51
52[app]
53# This creates all scripts in bin/. The kofactl created here is 'faulty'.
54recipe = zc.recipe.egg
55eggs = waeup.uniben [beaker]
56       z3c.evalexception>=2.0
57       Paste
58       PasteScript
59       PasteDeploy
60       repoze.profile
61       ZODB3
62interpreter = python-console
63
64[kofactl]
65# See http://pypi.python.org/pypi/zc.recipe.egg for details...
66# Here we create the kofactl script again, this time with a
67# fixed path to zdaemon.conf as argument.
68recipe = zc.recipe.egg
69eggs = waeup.uniben [beaker]
70arguments = "${buildout:parts-directory}/etc/zdaemon.conf"
71scripts = kofactl=kofactl
72
73[mkdirs]
74recipe = z3c.recipe.mkdir
75paths =
76    ${zope_conf:filestorage}
77    ${zope_conf:logfiles}
78    ${zope_conf:blobstorage}
79    ${buildout:directory}/var/datacenter/media
80    ${buildout:directory}/parts/test/datacenter
81
82[test]
83recipe = zc.recipe.testrunner
84eggs = waeup.uniben [beaker, test]
85defaults = ['--tests-pattern', '^f?tests$', '-v']
86
87# This section named so that the i18n scripts are called bin/i18n...
88[i18n]
89recipe = z3c.recipe.i18n:i18n
90packages = waeup.uniben
91eggs = waeup.uniben
92domain = waeup.uniben
93output = src/waeup/uniben/locales
94zcml =
95
96# This section is named so that the zpasswd utility is
97# called `zpasswd`
98[zpasswd]
99recipe = z3c.recipe.dev:script
100eggs = waeup.uniben
101module = zope.app.server.zpasswd
102method = main
103
104[zope_conf]
105recipe = collective.recipe.template
106input = etc/zope.conf.in
107output = ${buildout:parts-directory}/etc/zope.conf
108filestorage = ${buildout:directory}/var/filestorage
109blobstorage = ${buildout:directory}/var/blobstorage
110logfiles = ${buildout:directory}/var/log
111extra =
112# extra = <grokwarnings>True</grokwarnings>
113# 'extra' is copied verbatim. Use it for product config sections and so.
114
115# The [data] and [log] parts are still in here to instruct buildout to not
116# unintentionally throw away the parts/data and parts/log subdirectories
117# that contain the Data.fs and the log files. These files should be
118# copied to the new locations. See the upgrade notes for more information.
119[data]
120recipe = zc.recipe.filestorage
121
122[log]
123recipe = zc.recipe.filestorage
124
125[site_zcml]
126recipe = collective.recipe.template
127input = etc/site.zcml.in
128output = ${buildout:parts-directory}/etc/site.zcml
129
130[zdaemon_conf]
131recipe = collective.recipe.template
132input = etc/zdaemon.conf.in
133output = ${buildout:parts-directory}/etc/zdaemon.conf
134
135[deploy_ini]
136recipe = collective.recipe.template
137input = etc/deploy.ini.in
138output = ${buildout:parts-directory}/etc/deploy.ini
139
140[debug_ini]
141recipe = collective.recipe.template
142input = etc/debug.ini.in
143output = ${buildout:parts-directory}/etc/debug.ini
144
145[profile_ini]
146recipe = collective.recipe.template
147input = etc/profile.ini.in
148output = ${buildout:parts-directory}/etc/profile.ini
149
150[eggbasket]
151recipe = z3c.recipe.eggbasket
152eggs = grok
153url = http://grok.zope.org/releaseinfo/grok-eggs-1.1.tgz
154
155[waeupdocs]
156recipe = collective.recipe.sphinxbuilder
157eggs = waeup.uniben[docs]
158source = ${buildout:directory}/docs/source
159build = ${buildout:directory}/docs/build
160
161# Collect test coverage data.
162[coverage-detect]
163recipe = zc.recipe.testrunner
164eggs = waeup.uniben[beaker]
165defaults = ['--tests-pattern', '^f?tests$', '-v', '--coverage', 'coverage']
166
167# Create a coverage report.
168# Make sure to run bin/coverage-detect to collect the data for the report
169# first!
170[coverage-report]
171recipe = zc.recipe.egg
172eggs = z3c.coverage
173scripts = coveragereport
174arguments = ('${buildout:parts-directory}/coverage-detect/working-directory/coverage', '${buildout:directory}/coverage-report')
Note: See TracBrowser for help on using the repository browser.