Skip to content

Instantly share code, notes, and snippets.

@erral
Last active April 27, 2018 11:40
Show Gist options
  • Save erral/4f5c6a64c12d626a9f7b7f18d98ab1e0 to your computer and use it in GitHub Desktop.
Save erral/4f5c6a64c12d626a9f7b7f18d98ab1e0 to your computer and use it in GitHub Desktop.
collective.documentviewer with celery and redis on Plone 5
[buildout]
projectname = plone5
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/5.0-latest/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/5.0-latest
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
fancycompleter = 0.7
pdbpp = 0.8.3
pyrepl = 0.8.4
# Required by:
# pdbpp==0.8.3
wmctrl = 0.3
collective.documentviewer = 5.0.0
# Required by:
# collective.documentviewer==5.0.0
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 [email protected]]
MailMe${buildout:projectname}${instance:http-address} PROCESS_STATE_EXITED ${buildout:bin-directory}/crashmail [-p zope${buildout:projectname}${instance:http-address} -m [email protected]]
[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