Add Products.LongRequestLogger. This is a must install product.
[slapos.git] / stack / erp5 / buildout.cfg
1 [buildout]
2 # Local development
3 develop =
4   ${:parts-directory}/slapos.cookbook-repository
5   ${:parts-directory}/cloudooo-repository
6
7 extensions =
8   slapos.zcbworkarounds
9   mr.developer
10
11 find-links =
12     http://www.nexedi.org/static/packages/source/slapos.buildout/
13     http://www.nexedi.org/static/packages/source/hexagonit.recipe.download/
14     http://dist.repoze.org
15     http://www.nexedi.org/static/packages/source/
16     http://www.owlfish.com/software/wsgiutils/download.html
17
18 extends =
19 # Exact version of Zope
20   http://svn.zope.org/repos/main/Zope/tags/2.12.25/versions.cfg
21   ../../stack/slapos.cfg
22   ../../component/logrotate/buildout.cfg
23   ../../component/dcron/buildout.cfg
24   ../../component/file/buildout.cfg
25   ../../component/fonts/buildout.cfg
26   ../../component/ghostscript/buildout.cfg
27   ../../component/git/buildout.cfg
28   ../../component/graphviz/buildout.cfg
29   ../../component/gzip/buildout.cfg
30   ../../component/haproxy/buildout.cfg
31   ../../component/hookbox/buildout.cfg
32   ../../component/librsvg/buildout.cfg
33   ../../component/imagemagick/buildout.cfg
34   ../../component/kumo/buildout.cfg
35   ../../component/libdmtx/buildout.cfg
36   ../../component/libpng/buildout.cfg
37   ../../component/libreoffice-bin/buildout.cfg
38   ../../component/lxml-python/buildout.cfg
39   ../../component/percona-toolkit/buildout.cfg
40   ../../component/mariadb/buildout.cfg
41   ../../component/memcached/buildout.cfg
42   ../../component/mysql-python/buildout.cfg
43   ../../component/pdftk/buildout.cfg
44   ../../component/pil-python/buildout.cfg
45   ../../component/pycrypto-python/buildout.cfg
46   ../../component/pysvn-python/buildout.cfg
47   ../../component/python-2.6/buildout.cfg
48   ../../component/python-2.7/buildout.cfg
49   ../../component/python-ldap-python/buildout.cfg
50   ../../component/rdiff-backup/buildout.cfg
51   ../../component/stunnel/buildout.cfg
52   ../../component/subversion/buildout.cfg
53   ../../component/tesseract/buildout.cfg
54   ../../component/varnish/buildout.cfg
55   ../../component/w3-validator/buildout.cfg
56   ../../component/w3m/buildout.cfg
57   ../../component/xorg/buildout.cfg
58   ../../component/poppler/buildout.cfg
59   ../../component/xtrabackup/buildout.cfg
60   ../../component/zabbix/buildout.cfg
61   ../../component/sed/buildout.cfg
62   ../../component/coreutils/buildout.cfg
63   ../../component/grep/buildout.cfg
64   ../../component/dash/buildout.cfg
65   ../../component/wget/buildout.cfg
66   ../../component/aspell/buildout.cfg
67   ../../component/cloudooo/buildout.cfg
68
69 parts =
70   rdiff-backup
71   aspell
72   aspell-en-dictionary
73   apache
74   apache-antiloris
75   file
76   graphviz
77   memcached
78   haproxy
79   varnish-3.0
80   stunnel
81   w3m
82   poppler
83   libpng
84   ghostscript
85   mariadb
86   mroonga-mariadb
87   imagemagick
88   libdmtx
89   dmtx-utils
90   kumo
91   libreoffice-bin
92   w3-validator
93   tesseract
94   hookbox
95   bootstrap2.6
96   perl-DBD-mariadb
97   perl-DBI
98   percona-toolkit
99   zabbix-agent
100   pdftk
101   dcron
102   dash
103   wget
104
105 # Buildoutish
106   eggs
107   testrunner
108   test_suite_runner
109
110 # basic Xorg
111   libXdmcp
112   libXext
113   libXau
114   libSM
115   libXrender
116
117 # fonts
118   liberation-fonts
119   ipaex-fonts
120   ocrb-fonts
121
122 # Cloudooo specific part
123   cloudooo
124
125 # get git repositories
126   erp5
127   genbt5list
128
129 # fix products path (Zeo needs ERP5 Products to be available for
130 # conflict resolution)
131   fix-products-paths
132 # some additional utils
133   slapos-toolbox
134
135 # Local development
136   slapos.cookbook-repository
137   check-recipe
138   slapos.cookbook-python2.6
139   slapos.recipe.template-python2.6
140 # Create instance template
141   template
142
143 # Local development
144 [slapos.cookbook-repository]
145 recipe = plone.recipe.command
146 stop-on-error = true
147 branch = erp5
148 revision =
149 location = ${buildout:parts-directory}/${:_buildout_section_name_}
150 command = "${git:location}/bin/git" clone --branch "${:branch}" --quiet http://git.erp5.org/repos/slapos.git "${:location}" && if [ -n "${:revision}" ]; then cd "${:location}" && "${git:location}/bin/git" reset --quiet --hard "${:revision}" ; fi
151 update-command = cd "${:location}" && "${git:location}/bin/git" fetch --quiet && if [ -n "${:revision}" ]; then "${git:location}/bin/git" reset --hard "${:revision}"; else "${git:location}/bin/git" reset --quiet --hard @{upstream} ; fi
152
153 [check-recipe]
154 recipe = plone.recipe.command
155 stop-on-error = true
156 update-command = ${:command}
157 command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link
158
159 [slapos.cookbook-python2.6]
160 recipe = zc.recipe.egg
161 eggs = slapos.cookbook
162 scripts =
163 python = python2.6
164 ugly-depend-on = ${slapos.cookbook-repository:command} ${slapos.cookbook-repository:update-command}
165
166 [slapos.recipe.template-python2.6]
167 recipe = zc.recipe.egg
168 eggs = slapos.recipe.template
169 scripts =
170 python = python2.6
171
172 [template-jinja2-base]
173 recipe = slapos.recipe.template:jinja2
174 template = ${:_profile_base_location_}/${:filename}.in
175 rendered = ${buildout:directory}/${:filename}
176 # XXX: extra-context is needed because we cannot append to a key of an extended
177 # section.
178 extra-context =
179 context =
180     key bin_directory buildout:bin-directory
181     key develop_eggs_directory buildout:develop-eggs-directory
182     key eggs_directory buildout:eggs-directory
183     ${:extra-context}
184
185 [template-mariadb]
186 < = template-jinja2-base
187 filename = instance-mariadb.cfg
188 md5sum = 867bd8e3c4f56db2aab2fcad59f2efd8
189 extra-context =
190     key coreutils_location coreutils:location
191     key dcron_location dcron:location
192     key gettext_location gettext:location
193     key grep_location grep:location
194     key gzip_location gzip:location
195     key logrotate_location logrotate:location
196     key mariadb_location mariadb:location
197     key perl_location perl:location
198     key perl_siteprefix perl:siteprefix
199     key sed_location sed:location
200     key xtrabackup_location xtrabackup:location
201
202 [template-zope]
203 recipe = slapos.recipe.build:download
204 url = ${:_profile_base_location_}/instance-zope.cfg.in
205 md5sum = de2918c8ca604f452a69108f6e31e78d
206 mode = 640
207
208 [template-kumofs]
209 < = template-jinja2-base
210 filename = instance-kumofs.cfg
211 md5sum = 7e13d689de7163dcab64e8df4711cdd7
212 extra-context =
213     key dash_location dash:location
214     key dcron_location dcron:location
215     key gzip_location gzip:location
216     key kumo_location kumo:location
217     key logrotate_location logrotate:location
218
219 [template-tidstorage]
220 recipe = slapos.recipe.build:download
221 url = ${:_profile_base_location_}/instance-tidstorage.cfg.in
222 md5sum = 1f3e7cfc719d3c2eee4860678f6a67df
223 mode = 640
224
225 [template-cloudooo]
226 recipe = slapos.recipe.build:download
227 url = ${:_profile_base_location_}/instance-cloudoo.cfg.in
228 md5sum = 53492e520be57f4c6a9eacd107c8d446
229 mode = 640
230
231 [template-zope-conf]
232 recipe = slapos.recipe.build:download
233 url = ${:_profile_base_location_}/zope.conf.in
234 md5sum = bc2154161a1d5baddc4ed4dfaaf94fbe
235 mode = 640
236
237 [template]
238 < = template-jinja2-base
239 # XXX: "template.cfg" is hardcoded in instanciation recipe
240 filename = template.cfg
241 template = ${:_profile_base_location_}/instance.cfg.in
242 md5sum = 700b8729a4d9a8423ab2a99de486cc31
243 extra-context =
244     key apache_location apache:location
245     key aspell_location aspell:location
246     key buildout_bin_directory buildout:bin-directory
247     key coreutils_location coreutils:location
248     key curl_location curl:location
249     key dash_location dash:location
250     key dcron_location dcron:location
251     key dmtx_utils_location dmtx-utils:location
252     key erp5_location erp5:location
253     key file_location file:location
254     key fontconfig_location fontconfig:location
255     key fonts_location fonts:location
256     key freetype_location freetype:location
257     key git_location git:location
258     key graphviz_location graphviz:location
259     key grep_location grep:location
260     key gzip_location gzip:location
261     key haproxy_location haproxy:location
262     key imagemagick_location imagemagick:location
263     key libICE_location libICE:location
264     key libSM_location libSM:location
265     key libX11_location libX11:location
266     key libXau_location libXau:location
267     key libXdmcp_location libXdmcp:location
268     key libXext_location libXext:location
269     key libXrender_location libXrender:location
270     key libpng12_location libpng12:location
271     key libreoffice_bin_location libreoffice-bin:location
272     key librsvg_location librsvg:location
273     key libxcb_location libxcb:location
274     key local_bt5_repository local-bt5-repository:list
275     key logrotate_location logrotate:location
276     key mariadb_location mariadb:location
277     key openssl_location openssl:location
278     key pdftk_location pdftk:location
279     key poppler_location poppler:location
280     key sed_location sed:location
281     key template_cloudooo template-cloudooo:target
282     key template_erp5_single template-erp5-single:target
283     key template_erp5_cluster template-erp5-cluster:rendered
284     key template_kumofs template-kumofs:rendered
285     key template_mariadb template-mariadb:rendered
286     key template_memcached template-memcached:rendered
287     key template_tidstorage template-tidstorage:target
288     key template_varnish template-varnish:target
289     key template_zope template-zope:target
290     key template_zope_conf template-zope-conf:target
291     key tesseract_location tesseract:location
292     key varnish_location varnish-3.0:location
293     key w3m_location w3m:location
294     key wget_location wget:location
295     key zlib_location zlib:location
296
297 [template-memcached]
298 < = template-jinja2-base
299 filename = instance-memcached.cfg
300 md5sum = 44c507e9eec1003beb99f9063b5e09be
301 extra-context =
302     key dash_location dash:location
303     key memcached_location memcached:location
304
305 [template-erp5-single]
306 recipe = slapos.recipe.build:download
307 url = ${:_profile_base_location_}/instance-erp5-single.cfg.in
308 md5sum = 2a4312202a3160f874c4fa3ee9155a1d
309 mode = 640
310
311 [template-erp5-cluster]
312 < = template-jinja2-base
313 filename = instance-erp5-cluster.cfg
314 md5sum = b4a9688ca7983fac5dd573e66c6e4263
315 extra-context =
316     key local_bt5_repository local-bt5-repository:list
317
318 [template-varnish]
319 recipe = slapos.recipe.build:download
320 url = ${:_profile_base_location_}/instance-varnish.cfg.in
321 md5sum = 17aee2df57b121343b1fd65f4b51ce80
322 mode = 640
323
324 [bt5-repository]
325 # Format:
326 #   <url or path> [...]
327 #
328 # Use absolute paths for local repositories, and URLs for non-local otherwise.
329 #
330 list = ${local-bt5-repository:list}
331
332 [local-bt5-repository]
333 # Same as bt5-repository, but only local repository.
334 # Used to generate bt5lists.
335 list = ${erp5:location}/bt5 ${erp5:location}/product/ERP5/bootstrap
336
337 [genbt5list]
338 recipe = plone.recipe.command
339 stop-on-error = true
340 genbt5list = ${erp5:location}/product/ERP5/bin/genbt5list
341 command =
342   ${buildout:executable} ${:genbt5list} ${local-bt5-repository:list}
343 update-command = ${:command}
344
345 [bootstrap2.6]
346 python = python2.6
347
348 [erp5_repository_list]
349 repository_id_list = erp5
350
351 [erp5]
352 # Recipe zerokspot.recipe.git is disabled, as is not possible to change its
353 # environment to use localy delivered git.
354 # plone.recipe.command can do same job, but it is controllable which binary
355 # will be used
356 recipe = plone.recipe.command
357 location = ${buildout:parts-directory}/${:_buildout_section_name_}
358 stop-on-error = true
359 repository = http://git.erp5.org/repos/erp5.git
360 branch = master
361 revision =
362 command = "${git:location}/bin/git" clone --quiet --branch "${:branch}" "${:repository}" "${:location}" && if [ -n "${:revision}" ]; then cd "${:location}" && "${git:location}/bin/git" reset --quiet --hard "${:revision}" ; fi
363 update-command = cd "${:location}" && "${git:location}/bin/git" fetch && if [ -n "${:revision}" ]; then "${git:location}/bin/git" reset --hard "${:revision}"; else "${git:location}/bin/git" reset --hard @{upstream} ; fi
364
365 [fix-products-paths]
366 recipe = plone.recipe.command
367 stop-on-error = true
368 command =
369   for DIR in "${erp5:location}"; do cd "$DIR"; rm -f Products ; ln -s product Products; touch product/__init__.py; done
370 update-command = ${:command}
371
372 [testrunner]
373 # XXX: Workaround for fact ERP5Type is not an distribution and does not
374 #      expose entry point for test runner
375 recipe = zc.recipe.egg
376 python = python2.6
377 eggs = ${eggs:eggs}
378 extra-paths = ${eggs:extra-paths}
379 entry-points =
380   runUnitTest=runUnitTest:main
381 scripts = runUnitTest
382 initialization =
383   import glob, imp, os, sys
384   import App # prevent Testing from importing Zope2.App instead of App
385   import Products
386   Products.__path__[:0] = filter(None,
387     os.getenv('INSERT_PRODUCTS_PATH', '').split(os.pathsep))
388   os.environ['SOFTWARE_HOME'] = os.path.abspath(imp.find_module('Zope2')[1])
389   os.environ['ZOPE_SCRIPTS'] = ''
390   parts_directory = '''${buildout:parts-directory}'''
391   repository_id_list = \
392     '''${erp5_repository_list:repository_id_list}'''.split()[::-1]
393   os.environ['erp5_tests_bt5_path'] = ','.join(sum((
394     [bt5_path, os.path.join(bt5_path, '*')]
395     for bt5_path in (os.path.join(parts_directory, x, 'bt5')
396                      for x in repository_id_list)), []))
397   extra_path_list = '''${:extra-paths}'''.split()
398   sys.path[:0] = sum((
399     glob.glob(os.path.join(x, 'tests'))
400     for x in extra_path_list), [])
401   sys.path[:0] = sum((
402     glob.glob(os.path.join(x, 'Products', '*', 'tests'))
403     for x in extra_path_list), [])
404
405 [test_suite_runner]
406 # XXX: Workaround for fact ERP5Type is not an distribution and does not
407 #      expose entry point for test runner
408 recipe = zc.recipe.egg
409 python = python2.6
410 eggs = ${eggs:eggs}
411 extra-paths = ${eggs:extra-paths}
412 entry-points =
413   runTestSuite=Products.ERP5Type.tests.runTestSuite:main
414 scripts = runTestSuite
415 initialization =
416   import os
417   import sys
418   import Products
419   [Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
420   import Zope2
421   os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
422   os.environ['ZOPE_SCRIPTS'] = ''
423   repository_id_list = list(reversed('''${erp5_repository_list:repository_id_list}'''.split()))
424   sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x]) for x in repository_id_list]
425
426 [eggs]
427 recipe = zc.recipe.egg
428 python = python2.6
429 eggs =
430   ${mysql-python:egg}
431   ${lxml-python:egg}
432   ${pil-python:egg}
433   ${python-ldap-python:egg}
434   ${pysvn-python:egg}
435   ${pycrypto-python:egg}
436   PyXML
437   SOAPpy
438   cElementTree
439   chardet
440   coverage
441   elementtree
442   erp5diff
443   inotifyx
444   ipdb
445   mechanize
446   numpy
447   ordereddict
448   paramiko
449   ply
450   python-magic
451   python-memcached
452   pytz
453   requests
454   threadframe
455   timerserver
456   urlnorm
457   uuid
458   xml_marshaller
459   xupdate_processor
460   feedparser
461   argparse
462   validictory
463   erp5.util
464   huBarcode
465   qrcode
466
467 # Zope
468   ZODB3
469   Zope2
470 # Zope acquisition patch
471   Acquisition
472
473 # Other Zope 2 packages
474   Products.PluggableAuthService
475   Products.PluginRegistry
476
477 # CMF 2.2
478   Products.CMFActionIcons
479   Products.CMFCalendar
480   Products.CMFCore
481   Products.CMFDefault
482   Products.CMFTopic
483   Products.CMFUid
484   Products.DCWorkflow
485   Products.GenericSetup
486   five.localsitemanager
487
488 # Other products
489   Products.DCWorkflowGraph
490   Products.MimetypesRegistry
491   Products.ExternalEditor
492   Products.TIDStorage
493   Products.LongRequestLogger
494
495 # Currently forked in our repository
496 #    Products.PortalTransforms
497 # Dependency for our fork of PortalTransforms
498   StructuredText
499
500 # Needed for parsing .po files from our Localizer subset
501   polib
502
503 # parameterizing the version of the generated python interpreter name by the
504 # python section version causes dependency between this egg section and the
505 # installation of python, which we don't want on an instance
506 interpreter = python2.6
507 scripts =
508   repozo
509   runzope
510   runzeo
511   tidstoraged
512   tidstorage_repozo
513   web_checker_utility = erp5.util.webchecker:web_checker_utility
514
515 extra-paths =
516   ${erp5:location}
517
518 [cloudooo-repository]
519 branch = master
520 revision = 4cdfffb3f81a0fdbb7b372d92de664e716f12d4b
521
522 [mysql-python]
523 python = python2.6
524
525 [lxml-python]
526 python = python2.6
527
528 [pil-python]
529 python = python2.6
530
531 [python-ldap-python]
532 python = python2.6
533
534 [pysvn-python]
535 python = python2.6
536
537 [slapos-toolbox]
538 recipe = zc.recipe.egg
539 python = ${eggs:python}
540 eggs =
541   ${lxml-python:egg}
542   slapos.toolbox
543   slapos.toolbox[zodbpack]
544
545 scripts =
546   killpidfromfile
547   onetimedownload
548   zodbpack
549
550 [versions]
551 # pin Acquisition and Products.DCWorkflow to Nexedi flavour of eggs
552 Acquisition = 2.13.7nxd001
553 Products.DCWorkflow = 2.2.3nxd002
554
555 # Known version with works
556 numpy = 1.6.2
557 # Patched version which support python 2.6
558 PyXML = 0.8.4nxd001
559 # modified version that works fine for buildout installation
560 SOAPpy = 0.12.0nxd001
561 # we are still using this old stable version.
562 rdiff-backup = 1.0.5
563
564 # official pysvn egg does not supports --include-dirs and
565 # --library-dirs, so we use our modified version
566 pysvn = 1.7.4nxd006
567
568 # CMF 2.3 requries Zope 2.13.
569 Products.CMFCalendar = 2.2.2
570 Products.CMFCore = 2.2.6
571 Products.CMFDefault = 2.2.2
572 Products.CMFTopic = 2.2.1
573 Products.CMFUid = 2.2.1
574
575 # Unpined locally developed egg
576 slapos.cookbook =
577
578 # Pinned versions
579 Flask = 0.9
580 GitPython = 0.3.2.RC1
581 MySQL-python = 1.2.3
582 PIL = 1.1.7
583 Paste = 1.7.5.1
584 PasteDeploy = 1.5.0
585 PasteScript = 1.7.5
586 Products.CMFActionIcons = 2.1.3
587 Products.DCWorkflowGraph = 0.4.1
588 Products.ExternalEditor = 1.1.0
589 Products.GenericSetup = 1.7.2
590 Products.MimetypesRegistry = 2.0.3
591 Products.PluggableAuthService = 1.8.0
592 Products.PluginRegistry = 1.3
593 Products.TIDStorage = 5.4.8
594 Products.Zelenium = 1.0.3
595 StructuredText = 2.11.1
596 WSGIUtils = 0.7
597 Werkzeug = 0.8.3
598 apache-libcloud = 0.11.1
599 argparse = 1.2.1
600 async = 0.6.1
601 atomize = 0.1.1
602 buildout-versions = 1.7
603 cElementTree = 1.0.5-20051216
604 chardet = 1.1
605 coverage = 3.5.2
606 csp-eventlet = 0.7.0
607 elementtree = 1.2.7-20070827-preview
608 erp5.recipe.cmmiforcei686 = 0.1.3
609 erp5.util = 0.4.7
610 erp5diff = 0.8.1.5
611 eventlet = 0.9.17
612 feedparser = 5.1.2
613 five.localsitemanager = 2.0.5
614 fpconst = 0.7.2
615 gitdb = 0.5.4
616 greenlet = 0.4.0
617 hexagonit.recipe.cmmi = 1.6
618 http-parser = 0.7.8
619 huBarcode = 0.63
620 inotifyx = 0.2.0
621 ipdb = 0.7
622 ipython = 0.13
623 meld3 = 0.6.8
624 netaddr = 0.7.9
625 netifaces = 0.8
626 ordereddict = 1.1
627 paramiko = 1.7.7.2
628 plone.recipe.command = 1.1
629 ply = 3.4
630 polib = 1.0.0
631 psutil = 0.6.1
632 python-ldap = 2.4.10
633 python-magic = 0.4.3
634 python-memcached = 1.47
635 restkit = 4.2.0
636 rtjp-eventlet = 0.3.2
637 setuptools = 0.6c12dev-r88846
638 slapos.core = 0.28
639 slapos.recipe.build = 0.10
640 slapos.recipe.template = 2.4.2
641 slapos.toolbox = 0.29
642 smmap = 0.8.2
643 socketpool = 0.5.2
644 supervisor = 3.0a12
645 threadframe = 0.2
646 timerserver = 2.0.2
647 urlnorm = 1.1.2
648 uuid = 1.30
649 validictory = 0.8.3
650 xml-marshaller = 0.9.7
651 xupdate-processor = 0.4
652 mr.developer = 1.21
653 qrcode = 2.4.1
654 requests = 0.13.2