Commit 74b1dcaa authored by Łukasz Nowak's avatar Łukasz Nowak

- ERP5 software release for SlapOS infrastructure


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43908 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1de7d4c0
[buildout]
parts =
instance
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
[instance]
recipe = ${instance-recipe:name}
haproxy_binary = ${haproxy:location}/sbin/haproxy
httpd_binary = ${apache:location}/bin/httpd
kumo_gateway_binary = ${kumo:location}/bin/kumo-gateway
kumo_manager_binary = ${kumo:location}/bin/kumo-manager
kumo_server_binary = ${kumo:location}/bin/kumo-server
memcached_binary = ${memcached:location}/bin/memcached
mysql_binary = ${mariadb:location}/bin/mysql
mysql_install_binary = ${mariadb:location}/bin/mysql_install_db
mysqld_binary = ${mariadb:location}/libexec/mysqld
openssl_binary = ${openssl:location}/bin/openssl
runUnitTest_binary = ${buildout:bin-directory}/runUnitTest
runzeo_binary = ${buildout:bin-directory}/runzeo
runzope_binary = ${buildout:bin-directory}/runzope
zabbix_agent_binary = ${zabbix-agent:location}/sbin/zabbix_agent
# cloudooo specific configuration
ooo_binary_path = ${libreoffice-bin:location}/program
ooo_paster = ${buildout:bin-directory}/cloudooo_paster
ooo_uno_path = ${libreoffice-bin:location}/basis-link/program
link_binary_list =
${mariadb:location}/bin/mysql
${mariadb:location}/bin/mysqldump
${tesseract:location}/bin/tesseract
${w3m:location}/bin/w3m
${xpdf:location}/bin/pdfinfo
${xpdf:location}/bin/pdftotext
# XXX: products won't be needed as soon as all ERP5 (and products-deps)
# products will be eggified so then it will be possible to use them thanks to
# availability in software's eggs
products = ${products:list}
environment =
LD_LIBRARY_PATH = ${zlib:location}/lib:${freetype:location}/lib:${libXext:location}/lib:${libXau:location}/lib:${libX11:location}/lib
[buildout]
extensions =
slapos.tool.rebootstrap
slapos.zcbworkarounds
mr.developer
find-links =
http://download.zope.org/distribution/
http://download.hforge.org/itools/0.20/
http://download.hforge.org/itools/
http://dist.repoze.org
http://www.nexedi.org/static/packages/source/
extends =
# Exact version of Zope
http://svn.zope.org/repos/main/Zope/tags/2.12.15/versions.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/file.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/fonts.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/ghostscript.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/git.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/glib.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/graphviz.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/haproxy.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/imagemagick.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/kumo.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/libreoffice-bin.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/lxml-python.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/mariadb.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/memcached.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/mysql-python.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/products-erp5.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/pysvn-python.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/python-2.6.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/python-ldap-python.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/rdiff-backup.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/stunnel.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/subversion.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/tesseract.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/varnish.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/w3-validator.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/w3m.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/xorg.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/xpdf.cfg
https://svn.erp5.org/repos/public/erp5/trunk/buildout/software-profiles/zabbix.cfg
versions = versions
parts =
itools-build
rdiff-backup
apache
apache-antiloris
file
graphviz
memcached
haproxy
varnish-2.1
stunnel
w3m
xpdf
libpng12
ghostscript
mariadb
imagemagick
kumo
libreoffice-bin
w3-validator
tesseract-eng-traineddata-unzip
tesseract
bootstrap2.6
zabbix-agent
# Buildoutish
eggs
testrunner
# basic Xorg
libXext
libXau
libX11
# fonts
liberation-fonts
ipaex-fonts
# Zope products
products-deps
products-tidstorage
products-erp5
products-erp5-development
# Cloudooo specific part
cloudooo
# Create instance template
template
[instance-recipe]
# Note: In case if specific instantiation recipe is used this is the place to
# put its name
name = slapos.recipe.erp5
[products]
# XXX: ERP5 related products are not defined as python distributions, so it is
# required to configure them in declarative manner
list = ${products-deps:location} ${products-tidstorage:location} ${products-erp5:location} ${products-erp5-development:location}
[bootstrap2.6]
# as bootstrap in python software does not know that slapos.rebootstrap >= 2.0
# is used it is required to go back to default -- use own version of python
python = buildout
[rebootstrap]
# Default first version of rebootstrapped python
version = 1
section = python2.6
[template]
recipe = slapos.recipe.template
url = https://svn.erp5.org/repos/public/erp5/trunk/software_release/erp5/instance.cfg
md5sum = cdd13e7633405e91f47fedbec4355ed5
output = ${buildout:directory}/template.cfg
mode = 0644
[itools]
pkgname = itools-0.50.8
location = ${buildout:parts-directory}/${:_buildout_section_name_}
lib = ${:location}/lib
source = ${:location}/src
# ugly itools building sections until itools and setuptools learn to get
# along:
[itools-download]
recipe = hexagonit.recipe.download
strip-top-level-dir = true
url = http://download.hforge.org/itools/0.50/${itools:pkgname}.tar.gz
md5sum = 12704cc354e2201e0921a832bf6b1556
destination = ${itools:source}
[itools-build]
recipe = plone.recipe.command
# reference itools-download:destination instead of itools:source to trigger its
# execution
command =
cd ${itools-download:destination} &&
${buildout:executable} setup.py build_ext -L ${glib:location}/lib -I ${glib:location}/include/glib-2.0:${glib:location}/lib/glib-2.0/include -R ${glib:location}/lib &&
${buildout:executable} setup.py install_lib -d ${itools:lib}
update-command = ${:command}
location = ${itools:location}
stop-on-error = true
[products-tidstorage]
# Recipe infrae.subversion is using svn command under the hood, but there is
# no way to pass --trust-server-cert --non-interactive, so in 2.12 falvour
# it is better to evaluate usage of provided subversion command
recipe = plone.recipe.command
svn_param =--trust-server-cert --non-interactive --quiet --revision ${versions:erp5_products_revision}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
update-command = ${:command}
product_list = TIDStorage
command =
for product in ${:product_list} ; do ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.erp5.org/repos/public/erp5/trunk/products/$product ${:location}/$product || exit 1 ; done
[products-deps]
# Recipe minitage.recipe.fetch is disabled, as it uses PATH variable, but it
# is not possible to change its environment to use localy delivered subversion
# nor git. plone.recipe.command can do same job, but it is controllable which
# binary will be used
recipe = plone.recipe.command
svn_param =--trust-server-cert --non-interactive --quiet
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
command =
${subversion:location}/bin/svn checkout ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile &&
${git:location}/bin/git clone --quiet git://git.hforge.org/Localizer.git ${:location}/Localizer
update-command =
if ${buildout:newest}; then
${subversion:location}/bin/svn checkout ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile &&
cd ${:location}/Localizer &&
${git:location}/bin/git pull --quiet
fi
[testrunner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
# expose entry point for test runner
recipe = zc.recipe.egg
eggs = ${eggs:eggs}
extra-paths = ${eggs:extra-paths}
entry-points =
runUnitTest=Products.ERP5Type.tests.runUnitTest:main
scripts = runUnitTest
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]
Products.__path__.extend(reversed('''${products:list}'''.split()))
import Zope2
os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
os.environ['ZOPE_SCRIPTS'] = ''
[pycrypto-python]
# This is a workaround for pkg_resources.ExtractionError: Can't extract file(s) to egg cache
# Note that currently we are stuck with develop eggs
# *Maybe* possible solution is to setup PYTHON_EGG_CACHE?
# *Why* python-MySQL workED and pycrypto DID not? Because MySQL distribution
# was unpacked, and pycrypto was packed.
recipe = zc.recipe.egg:custom
egg = pycrypto
[eggs]
recipe = zc.recipe.egg
eggs =
${mysql-python:egg}
${lxml-python:egg}
${python-ldap-python:egg}
${pysvn-python:egg}
${pycrypto-python:egg}
PyXML
SOAPpy
cElementTree
chardet
elementtree
erp5diff
ipdb
mechanize
numpy
ordereddict
paramiko
ply
python-magic
python-memcached
pytz
simplejson
threadframe
timerserver
urlnorm
uuid
xml_marshaller
xupdate_processor
feedparser
# Zope 2.12 with patched acquisition
ZODB3
Zope2
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.Zelenium
# Currently forked in our repository
# Products.PortalTransforms
# Dependency for our fork of PortalTransforms
StructuredText
erp5.conflictresolver
# instantiation egg
${instance-recipe:name}
# 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 =
runzope
runzeo
extra-paths =
${itools:location}/lib
[cloudooo]
recipe = zc.recipe.egg
eggs =
${lxml-python:egg}
cloudooo
PasteScript
scripts =
paster=cloudooo_paster
[versions]
# XXX: Maybe not needed
erp5_products_revision = HEAD
# pin Acquisition and Products.DCWorkflow to Nexedi flavour of eggs
Acquisition = 2.13.4nxd001
Products.DCWorkflow = 2.2.1nxd001
# Known version with works
numpy = 1.3.0
# 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
# Zope Known Good Set is incompatible with buildout 1.5.0 in case of
# distribute and zc.buildout, and as ERP5 Appliance trunk wants to use
# the newest versions of buildout infrastructure clear the pin
distribute =
zc.buildout =
setuptools =
# official pysvn egg does not supports --include-dirs and
# --library-dirs, so we use our modified version
pysvn = 1.7.4nxd006
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment