Skip to content

Instantly share code, notes, and snippets.

@erral
Last active April 27, 2018 11:40
Show Gist options
  • Save erral/ec73a535029acdc794898a1ea12e9a2e to your computer and use it in GitHub Desktop.
Save erral/ec73a535029acdc794898a1ea12e9a2e to your computer and use it in GitHub Desktop.
collective.documentviewer with celery and redis on Plone 4
[buildout]
projectname = plone4
extensions =
mr.developer
show-picked-versions = true
parts +=
instance
zeo
omelette
zopepy
scripts
supervisor
# Change the number here to change the version of Plone being used
extends =
https://dist.plone.org/release/4.3.10/versions.cfg
versions = versions
# Add additional egg download sources here. dist.plone.org contains archives
# of Plone packages.
find-links =
https://dist.plone.org/release/4.3.10
https://dist.plone.org/thirdparty
# Add additional eggs needed for your project here
eggs =
pdbpp
celery[redis]
collective.celery
collective.documentviewer
# Add here which products' zcml files will be loaded
zcml =
[versions]
# Solution for your setuptools problems
# https://community.plone.org/t/not-using-bootstrap-py-as-default/620
setuptools =
zc.buildout =
# Supervisor versions
supervisor = 3.3.1
collective.recipe.supervisor = 0.20
superlance = 0.14
meld3 = 1.0.2
# Calculate Zope's checkinterval
cs.recipe.checkinterval = 1.0
jarn.checkinterval = 1.0
# Custom egg versions
cs.folderishpage = 2.0
fancycompleter = 0.7
pdbpp = 0.8.3
pyrepl = 0.8.4
# Required by:
# pdbpp==0.8.3
wmctrl = 0.3
# Required by:
# collective.celery==1.0.6
plone.api = 1.6.1
collective.documentviewer = 4.0.14
# Required by:
# collective.documentviewer==4.0.14
repoze.catalog = 0.8.3
# celery
collective.celery = 1.0.6
redis = 2.10.5
amqp = 1.4.9
anyjson = 0.3.3
billiard = 3.3.0.20
celery = 3.1.18
elasticsearch = 2.3.0
kombu = 3.0.37
# Port configuration
[ports]
instance = 8080
zeo = 8090
[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
http-address = ${ports:instance}
debug-mode = on
verbose-security = on
blob-storage = ${buildout:directory}/var/blobstorage
shared-blob = on
zeo-client = True
zeo-address = ${ports:zeo}
# Do not add eggs here
# for consistence-sake, please add them in the eggs
# option for buildout part. Only Zope and Plone eggs
# must be listed here. Thank you.
eggs =
Zope2
Plone
${buildout:eggs}
environment-vars =
# Add here the languages of this site
zope_i18n_compile_mo_files true
TZ Europe/Madrid
PYTHON_EGG_CACHE = ${buildout:directory}/var/.python-eggs
CELERY_BROKER_URL redis://localhost:6379/0
CELERY_RESULT_BACKEND redis://localhost:6379/1
# Do not add zcml here
# for consistence-sake, please add them in the zcml
# option for buildout part. Thank you.
zcml =
${buildout:zcml}
products =
${buildout:directory}/products
[zeo]
recipe = plone.recipe.zeoserver
zeo-address = ${ports:zeo}
[supervisor]
recipe = collective.recipe.supervisor
http-socket = unix
file = ${buildout:directory}/var/supervisord.sock
plugins = superlance
programs =
10 zeo${buildout:projectname} (autorestart=true) ${buildout:directory}/bin/zeo [fg] true
20 zope${buildout:projectname}${instance:http-address} (autorestart=true) ${buildout:directory}/bin/instance [console] true
30 celery${buildout:projectname} (autorestart=true) ${buildout:directory}/bin/pcelery [worker ${instance:location}/etc/zope.conf]
eventlisteners =
Memmon${buildout:projectname}${instance:http-address} TICK_60 ${buildout:bin-directory}/memmon [-p zope${buildout:projectname}${instance:http-address}=700MB -m support@server.com]
MailMe${buildout:projectname}${instance:http-address} PROCESS_STATE_EXITED ${buildout:bin-directory}/crashmail [-p zope${buildout:projectname}${instance:http-address} -m support@server.com]
[omelette]
recipe = collective.recipe.omelette
eggs = ${instance:eggs}
products = ${instance:products}
[zopepy]
recipe = zc.recipe.egg
eggs = ${instance:eggs}
interpreter = zopepy
scripts = zopepy
[scripts]
recipe = zc.recipe.egg
eggs = ${instance:eggs}
scripts = pcelery
# Add here your develop eggs
# you can activate them using bin/develop
# for documentation about using git or svn urls, check
# http://pypi.python.org/pypi/mr.developer
[sources]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment