buildout.cfg 16.7 KB
Newer Older
1
[buildout]
2 3 4 5 6
# Local development
develop =
  ${:parts-directory}/slapos.cookbook-repository
  ${:parts-directory}/cloudooo-repository

7 8
extensions =
  slapos.zcbworkarounds
9
  mr.developer
10 11 12

find-links =
    http://www.nexedi.org/static/packages/source/slapos.buildout/
13
    http://www.nexedi.org/static/packages/source/hexagonit.recipe.download/
14 15
    http://dist.repoze.org
    http://www.nexedi.org/static/packages/source/
16
    http://www.owlfish.com/software/wsgiutils/download.html
17 18 19

extends =
# Exact version of Zope
20
  http://svn.zope.org/repos/main/Zope/tags/2.12.26/versions.cfg
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
  ../../stack/slapos.cfg
  ../../component/logrotate/buildout.cfg
  ../../component/dcron/buildout.cfg
  ../../component/file/buildout.cfg
  ../../component/fonts/buildout.cfg
  ../../component/ghostscript/buildout.cfg
  ../../component/git/buildout.cfg
  ../../component/graphviz/buildout.cfg
  ../../component/gzip/buildout.cfg
  ../../component/haproxy/buildout.cfg
  ../../component/hookbox/buildout.cfg
  ../../component/librsvg/buildout.cfg
  ../../component/imagemagick/buildout.cfg
  ../../component/kumo/buildout.cfg
  ../../component/libdmtx/buildout.cfg
  ../../component/libpng/buildout.cfg
  ../../component/libreoffice-bin/buildout.cfg
  ../../component/lxml-python/buildout.cfg
  ../../component/percona-toolkit/buildout.cfg
  ../../component/mariadb/buildout.cfg
  ../../component/memcached/buildout.cfg
  ../../component/mysql-python/buildout.cfg
  ../../component/pdftk/buildout.cfg
  ../../component/pil-python/buildout.cfg
  ../../component/pycrypto-python/buildout.cfg
  ../../component/pysvn-python/buildout.cfg
  ../../component/python-2.6/buildout.cfg
  ../../component/python-2.7/buildout.cfg
  ../../component/python-ldap-python/buildout.cfg
  ../../component/rdiff-backup/buildout.cfg
  ../../component/subversion/buildout.cfg
  ../../component/tesseract/buildout.cfg
  ../../component/varnish/buildout.cfg
  ../../component/w3-validator/buildout.cfg
  ../../component/w3m/buildout.cfg
  ../../component/xorg/buildout.cfg
  ../../component/poppler/buildout.cfg
  ../../component/xtrabackup/buildout.cfg
  ../../component/zabbix/buildout.cfg
  ../../component/sed/buildout.cfg
  ../../component/coreutils/buildout.cfg
  ../../component/grep/buildout.cfg
  ../../component/dash/buildout.cfg
  ../../component/wget/buildout.cfg
  ../../component/aspell/buildout.cfg
  ../../component/cloudooo/buildout.cfg
67 68 69

parts =
  rdiff-backup
70
  aspell
71
  aspell-en-dictionary
72 73 74 75 76 77
  apache
  apache-antiloris
  file
  graphviz
  memcached
  haproxy
78
  varnish-3.0
79
  w3m
Rafael Monnerat's avatar
Rafael Monnerat committed
80
  poppler
81
  libpng
82 83
  ghostscript
  mariadb
84
  mroonga-mariadb
85
  imagemagick
86 87
  libdmtx
  dmtx-utils
88 89 90 91 92 93
  kumo
  libreoffice-bin
  w3-validator
  tesseract
  hookbox
  bootstrap2.6
94 95 96
  perl-DBD-mariadb
  perl-DBI
  percona-toolkit
97 98 99
  zabbix-agent
  pdftk
  dcron
Romain Courteaud's avatar
Romain Courteaud committed
100
  dash
101
  wget
102 103 104 105 106 107 108 109 110 111

# Buildoutish
  eggs
  testrunner
  test_suite_runner

# basic Xorg
  libXdmcp
  libXext
  libXau
112
  libSM
113
  libXrender
114 115 116 117

# fonts
  liberation-fonts
  ipaex-fonts
118
  ocrb-fonts
119 120 121 122 123 124

# Cloudooo specific part
  cloudooo

# get git repositories
  erp5
125 126
  genbt5list

127 128
# fix products path (Zeo needs ERP5 Products to be available for
# conflict resolution)
129
  fix-products-paths
130 131
# some additional utils
  slapos-toolbox
132

133 134 135 136 137 138 139 140 141 142
# Local development
  slapos.cookbook-repository
  check-recipe
  slapos.cookbook-python2.6
  slapos.recipe.template-python2.6
# Create instance template
  template

# Local development
[slapos.cookbook-repository]
143 144
recipe = slapos.recipe.build:gitclone
repository = http://git.erp5.org/repos/slapos.git
145
branch = erp5-component
146
git-executable = ${git:location}/bin/git
147 148 149 150 151 152 153 154 155 156 157 158

[check-recipe]
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link

[slapos.cookbook-python2.6]
recipe = zc.recipe.egg
eggs = slapos.cookbook
scripts =
python = python2.6
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
159
ugly-depend-on = ${slapos.cookbook-repository:repository} ${slapos.cookbook-repository:branch}
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180

[slapos.recipe.template-python2.6]
recipe = zc.recipe.egg
eggs = slapos.recipe.template
scripts =
python = python2.6

[template-jinja2-base]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/${:filename}.in
rendered = ${buildout:directory}/${:filename}
# XXX: extra-context is needed because we cannot append to a key of an extended
# section.
extra-context =
context =
    key bin_directory buildout:bin-directory
    key develop_eggs_directory buildout:develop-eggs-directory
    key eggs_directory buildout:eggs-directory
    ${:extra-context}

[template-mariadb]
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
< = template-jinja2-base
filename = instance-mariadb.cfg
md5sum = 867bd8e3c4f56db2aab2fcad59f2efd8
extra-context =
    key coreutils_location coreutils:location
    key dcron_location dcron:location
    key gettext_location gettext:location
    key grep_location grep:location
    key gzip_location gzip:location
    key logrotate_location logrotate:location
    key mariadb_location mariadb:location
    key perl_location perl:location
    key perl_siteprefix perl:siteprefix
    key sed_location sed:location
    key xtrabackup_location xtrabackup:location
196 197

[template-zope]
198 199 200 201
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-zope.cfg.in
md5sum = d5981dbe595004c707dd1744be1fe753
mode = 640
202 203

[template-kumofs]
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
< = template-jinja2-base
filename = instance-kumofs.cfg
md5sum = 7e13d689de7163dcab64e8df4711cdd7
extra-context =
    key dash_location dash:location
    key dcron_location dcron:location
    key gzip_location gzip:location
    key kumo_location kumo:location
    key logrotate_location logrotate:location

[template-tidstorage]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-tidstorage.cfg.in
md5sum = 5e0c5de5bc17947c152de73b329a5a02
mode = 640
219 220

[template-cloudooo]
221 222 223 224
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-cloudoo.cfg.in
md5sum = 53492e520be57f4c6a9eacd107c8d446
mode = 640
225 226

[template-zope-conf]
227 228 229 230
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/zope.conf.in
md5sum = bc2154161a1d5baddc4ed4dfaaf94fbe
mode = 640
231 232 233 234 235 236

[template]
< = template-jinja2-base
# XXX: "template.cfg" is hardcoded in instanciation recipe
filename = template.cfg
template = ${:_profile_base_location_}/instance.cfg.in
237
md5sum = bee6c2b640efee53e3b6e209127cb0bc
238 239 240 241 242
extra-context =
    key apache_location apache:location
    key aspell_location aspell:location
    key buildout_bin_directory buildout:bin-directory
    key coreutils_location coreutils:location
243
    key curl_location curl:location
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
    key dash_location dash:location
    key dcron_location dcron:location
    key dmtx_utils_location dmtx-utils:location
    key erp5_location erp5:location
    key file_location file:location
    key fontconfig_location fontconfig:location
    key fonts_location fonts:location
    key freetype_location freetype:location
    key git_location git:location
    key graphviz_location graphviz:location
    key grep_location grep:location
    key gzip_location gzip:location
    key haproxy_location haproxy:location
    key imagemagick_location imagemagick:location
    key libICE_location libICE:location
    key libSM_location libSM:location
    key libX11_location libX11:location
    key libXau_location libXau:location
    key libXdmcp_location libXdmcp:location
    key libXext_location libXext:location
    key libXrender_location libXrender:location
    key libpng12_location libpng12:location
    key libreoffice_bin_location libreoffice-bin:location
    key librsvg_location librsvg:location
    key libxcb_location libxcb:location
269
    key local_bt5_repository local-bt5-repository:list
270 271 272 273 274 275 276
    key logrotate_location logrotate:location
    key mariadb_location mariadb:location
    key openssl_location openssl:location
    key pdftk_location pdftk:location
    key poppler_location poppler:location
    key sed_location sed:location
    key template_cloudooo template-cloudooo:target
277
    key template_erp5_single template-erp5-single:target
278
    key template_erp5_cluster template-erp5-cluster:target
279 280 281 282
    key template_kumofs template-kumofs:rendered
    key template_mariadb template-mariadb:rendered
    key template_memcached template-memcached:rendered
    key template_tidstorage template-tidstorage:target
283 284 285 286 287 288 289 290 291 292
    key template_varnish template-varnish:target
    key template_zope template-zope:target
    key template_zope_conf template-zope-conf:target
    key tesseract_location tesseract:location
    key varnish_location varnish-3.0:location
    key w3m_location w3m:location
    key wget_location wget:location
    key zlib_location zlib:location

[template-memcached]
293 294 295 296 297 298
< = template-jinja2-base
filename = instance-memcached.cfg
md5sum = 44c507e9eec1003beb99f9063b5e09be
extra-context =
    key dash_location dash:location
    key memcached_location memcached:location
299

300
[template-erp5-single]
301 302 303 304
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-erp5-single.cfg.in
md5sum = 2a4312202a3160f874c4fa3ee9155a1d
mode = 640
305

306
[template-erp5-cluster]
307 308 309 310
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-erp5-cluster.cfg.in
md5sum = eecde68b9a266d8883042540ac077839
mode = 640
311

312
[template-varnish]
313 314 315 316
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-varnish.cfg.in
md5sum = 17aee2df57b121343b1fd65f4b51ce80
mode = 640
317

318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335
[bt5-repository]
# Format:
#   <url or path> [...]
#
# Use absolute paths for local repositories, and URLs for non-local otherwise.
#
list = ${local-bt5-repository:list}

[local-bt5-repository]
# Same as bt5-repository, but only local repository.
# Used to generate bt5lists.
list = ${erp5:location}/bt5 ${erp5:location}/product/ERP5/bootstrap

[genbt5list]
recipe = plone.recipe.command
stop-on-error = true
genbt5list = ${erp5:location}/product/ERP5/bin/genbt5list
command =
Łukasz Nowak's avatar
Łukasz Nowak committed
336
  ${buildout:executable} ${:genbt5list} ${local-bt5-repository:list}
337
update-command = ${:command}
338 339 340 341 342 343 344 345

[bootstrap2.6]
python = python2.6

[erp5_repository_list]
repository_id_list = erp5

[erp5]
346
recipe = slapos.recipe.build:gitclone
347
repository = http://git.erp5.org/repos/erp5.git
348
branch = erp5-component
349
git-executable = ${git:location}/bin/git
350

351
[fix-products-paths]
352 353 354 355 356
recipe = plone.recipe.command
stop-on-error = true
command =
  for DIR in "${erp5:location}"; do cd "$DIR"; rm -f Products ; ln -s product Products; touch product/__init__.py; done
update-command = ${:command}
357 358 359 360 361 362 363 364 365

[testrunner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
#      expose entry point for test runner
recipe = zc.recipe.egg
python = python2.6
eggs = ${eggs:eggs}
extra-paths = ${eggs:extra-paths}
entry-points =
366
  runUnitTest=runUnitTest:main
367 368
scripts = runUnitTest
initialization =
369
  import glob, imp, os, sys
370
  import App # prevent Testing from importing Zope2.App instead of App
371
  import Products
372 373 374
  Products.__path__[:0] = filter(None,
    os.getenv('INSERT_PRODUCTS_PATH', '').split(os.pathsep))
  os.environ['SOFTWARE_HOME'] = os.path.abspath(imp.find_module('Zope2')[1])
375
  os.environ['ZOPE_SCRIPTS'] = ''
Vincent Pelletier's avatar
Vincent Pelletier committed
376
  parts_directory = '''${buildout:parts-directory}'''
377 378 379 380 381 382
  repository_id_list = \
    '''${erp5_repository_list:repository_id_list}'''.split()[::-1]
  os.environ['erp5_tests_bt5_path'] = ','.join(sum((
    [bt5_path, os.path.join(bt5_path, '*')]
    for bt5_path in (os.path.join(parts_directory, x, 'bt5')
                     for x in repository_id_list)), []))
383
  extra_path_list = '''${:extra-paths}'''.split()
384
  sys.path[:0] = sum((
385 386
    glob.glob(os.path.join(x, 'tests'))
    for x in extra_path_list), [])
387
  sys.path[:0] = sum((
388 389
    glob.glob(os.path.join(x, 'Products', '*', 'tests'))
    for x in extra_path_list), [])
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408

[test_suite_runner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
#      expose entry point for test runner
recipe = zc.recipe.egg
python = python2.6
eggs = ${eggs:eggs}
extra-paths = ${eggs:extra-paths}
entry-points =
  runTestSuite=Products.ERP5Type.tests.runTestSuite:main
scripts = runTestSuite
initialization =
  import os
  import sys
  import Products
  [Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
  import Zope2
  os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
  os.environ['ZOPE_SCRIPTS'] = ''
409
  repository_id_list = list(reversed('''${erp5_repository_list:repository_id_list}'''.split()))
410
  sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x]) for x in repository_id_list]
411 412 413 414 415 416 417

[eggs]
recipe = zc.recipe.egg
python = python2.6
eggs =
  ${mysql-python:egg}
  ${lxml-python:egg}
418
  ${pil-python:egg}
419 420
  ${python-ldap-python:egg}
  ${pysvn-python:egg}
421
  ${pycrypto-python:egg}
422 423 424 425
  PyXML
  SOAPpy
  cElementTree
  chardet
Aurel's avatar
Aurel committed
426
  coverage
427 428
  elementtree
  erp5diff
429
  inotifyx
430 431 432 433 434 435 436 437 438
  ipdb
  mechanize
  numpy
  ordereddict
  paramiko
  ply
  python-magic
  python-memcached
  pytz
439
  requests
440 441 442 443 444 445 446 447
  threadframe
  timerserver
  urlnorm
  uuid
  xml_marshaller
  xupdate_processor
  feedparser
  argparse
448
  validictory
449
  erp5.util
450
  huBarcode
451
  qrcode
452

Vincent Pelletier's avatar
Vincent Pelletier committed
453
# Zope
454 455
  ZODB3
  Zope2
Vincent Pelletier's avatar
Vincent Pelletier committed
456
# Zope acquisition patch
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478
  Acquisition

# Other Zope 2 packages
  Products.PluggableAuthService
  Products.PluginRegistry

# CMF 2.2
  Products.CMFActionIcons
  Products.CMFCalendar
  Products.CMFCore
  Products.CMFDefault
  Products.CMFTopic
  Products.CMFUid
  Products.DCWorkflow
  Products.GenericSetup
  five.localsitemanager

# Other products
  Products.DCWorkflowGraph
  Products.MimetypesRegistry
  Products.ExternalEditor
  Products.TIDStorage
479
  Products.LongRequestLogger
480 481 482 483 484 485

# Currently forked in our repository
#    Products.PortalTransforms
# Dependency for our fork of PortalTransforms
  StructuredText

486 487 488
# Needed for parsing .po files from our Localizer subset
  polib

489 490 491 492 493 494 495 496 497 498
# parameterizing the version of the generated python interpreter name by the
# python section version causes dependency between this egg section and the
# installation of python, which we don't want on an instance
interpreter = python2.6
scripts =
  repozo
  runzope
  runzeo
  tidstoraged
  tidstorage_repozo
499
  web_checker_utility = erp5.util.webchecker:web_checker_utility
500 501

extra-paths =
502
  ${erp5:location}
503

504 505 506 507
[cloudooo-repository]
branch = master
revision = 4cdfffb3f81a0fdbb7b372d92de664e716f12d4b

508 509 510 511 512 513
[mysql-python]
python = python2.6

[lxml-python]
python = python2.6

514 515 516
[pil-python]
python = python2.6

517 518 519 520 521 522
[python-ldap-python]
python = python2.6

[pysvn-python]
python = python2.6

523 524 525 526 527 528
[slapos-toolbox]
recipe = zc.recipe.egg
python = ${eggs:python}
eggs =
  ${lxml-python:egg}
  slapos.toolbox
Łukasz Nowak's avatar
Łukasz Nowak committed
529
  slapos.toolbox[zodbpack]
530 531

scripts =
Łukasz Nowak's avatar
Łukasz Nowak committed
532 533
  killpidfromfile
  onetimedownload
Łukasz Nowak's avatar
Łukasz Nowak committed
534
  zodbpack
535

536 537 538 539 540 541
[versions]
# pin Acquisition and Products.DCWorkflow to Nexedi flavour of eggs
Acquisition = 2.13.7nxd001
Products.DCWorkflow = 2.2.3nxd002

# Known version with works
Łukasz Nowak's avatar
Łukasz Nowak committed
542
numpy = 1.6.2
543 544 545 546 547 548 549 550 551 552
# Patched version which support python 2.6
PyXML = 0.8.4nxd001
# modified version that works fine for buildout installation
SOAPpy = 0.12.0nxd001
# we are still using this old stable version.
rdiff-backup = 1.0.5

# official pysvn egg does not supports --include-dirs and
# --library-dirs, so we use our modified version
pysvn = 1.7.4nxd006
553 554 555

# CMF 2.3 requries Zope 2.13.
Products.CMFCalendar = 2.2.2
556
Products.CMFCore = 2.2.6
557 558 559
Products.CMFDefault = 2.2.2
Products.CMFTopic = 2.2.1
Products.CMFUid = 2.2.1
560 561 562 563 564

# Unpined locally developed egg
slapos.cookbook =

# Pinned versions
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
565
Flask = 0.9
566
GitPython = 0.3.2.RC1
567
MySQL-python = 1.2.3
568
PIL = 1.1.7
569
Paste = 1.7.5.1
570
PasteDeploy = 1.5.0
571 572 573 574
PasteScript = 1.7.5
Products.CMFActionIcons = 2.1.3
Products.DCWorkflowGraph = 0.4.1
Products.ExternalEditor = 1.1.0
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
575
Products.GenericSetup = 1.7.2
576
Products.MimetypesRegistry = 2.0.3
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
577 578 579
Products.PluggableAuthService = 1.8.0
Products.PluginRegistry = 1.3
Products.TIDStorage = 5.4.8
580 581 582 583
Products.Zelenium = 1.0.3
StructuredText = 2.11.1
WSGIUtils = 0.7
Werkzeug = 0.8.3
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
584 585
apache-libcloud = 0.11.1
argparse = 1.2.1
586
async = 0.6.1
587
atomize = 0.1.1
588 589
buildout-versions = 1.7
cElementTree = 1.0.5-20051216
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
590 591
chardet = 1.1
coverage = 3.5.2
592 593 594
csp-eventlet = 0.7.0
elementtree = 1.2.7-20070827-preview
erp5.recipe.cmmiforcei686 = 0.1.3
595
erp5.util = 0.4.22
596
erp5diff = 0.8.1.5
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
597 598
eventlet = 0.9.17
feedparser = 5.1.2
599
five.localsitemanager = 2.0.5
600
fpconst = 0.7.2
601
gitdb = 0.5.4
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
602 603
greenlet = 0.4.0
hexagonit.recipe.cmmi = 1.6
604
hexagonit.recipe.download = 1.6nxd002
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
605
http-parser = 0.7.8
606
huBarcode = 0.63
607
inotifyx = 0.2.0
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
608 609
ipdb = 0.7
ipython = 0.13
610
meld3 = 0.6.8
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
611
netaddr = 0.7.9
612
netifaces = 0.8
613
ordereddict = 1.1
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
614
paramiko = 1.7.7.2
615 616
plone.recipe.command = 1.1
ply = 3.4
617
polib = 1.0.0
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
618 619
psutil = 0.6.1
python-ldap = 2.4.10
620
python-magic = 0.4.3
621
python-memcached = 1.47
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
622
restkit = 4.2.0
623
rtjp-eventlet = 0.3.2
624
setuptools = 0.6c12dev-r88846
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
625
slapos.core = 0.28
626 627
slapos.libnetworkcache = 0.13.2
slapos.recipe.build = 0.11.4
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
628 629
slapos.recipe.template = 2.4.2
slapos.toolbox = 0.29
630
smmap = 0.8.2
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
631
socketpool = 0.5.2
632
supervisor = 3.0a12
633 634 635 636 637 638
threadframe = 0.2
timerserver = 2.0.2
urlnorm = 1.1.2
uuid = 1.30
validictory = 0.8.3
xml-marshaller = 0.9.7
639
xupdate-processor = 0.4
Romain Courteaud's avatar
Romain Courteaud committed
640 641 642
mr.developer = 1.21
qrcode = 2.4.1
requests = 0.13.2