Skip to content

Instantly share code, notes, and snippets.

@rnaveiras
Created March 25, 2010 17:33
Show Gist options
  • Save rnaveiras/343862 to your computer and use it in GitHub Desktop.
Save rnaveiras/343862 to your computer and use it in GitHub Desktop.
buidout
######################################################
# Base Configuration; used by both standalone and zeo,
# which extend it.
# ---------------------------------------------------
# $LastChangedDate: 2009-11-08 14:08:34 -0800 (Sun, 08 Nov 2009) $ $LastChangedRevision: 31219 $
# Buildout instructions in this file are
# usually only changed by experienced developers.
#
# Beyond here there be dragons!
[buildout]
eggs-directory=/opt/www/Plone-4.0b1/buildout-cache/eggs
download-cache=/opt/www/Plone-4.0b1/buildout-cache/downloads
newest = false
versions = versions
# Add additional egg download sources here. dist.plone.org contains archives
# of Plone packages.
find-links =
http://dist.plone.org
http://dist.plone.org/thirdparty
http://download.zope.org/ppix/
http://download.zope.org/distribution/
http://effbot.org/downloads
# unzip all eggs for easier debugging
unzip = true
# Load the DumpPickedVersions extension, which will notify
# you of versions picked by buildout that were not specifically
# pinned.
extensions = buildout.dumppickedversions
extends-cache = /opt/www/Plone-4.0b1/buildout-cache/downloads/extends
[productdistros]
# Use this section to download additional old-style products.
# List any number of URLs for product tarballs under URLs (separate
# with whitespace, or break over several lines, with subsequent lines
# indented). If any archives contain several products inside a top-level
# directory, list the archive file name (i.e. the last part of the URL,
# normally with a .tar.gz suffix or similar) under 'nested-packages'.
# If any archives extract to a product directory with a version suffix, list
# the archive name under 'version-suffix-packages'.
# For options see http://pypi.python.org/pypi/plone.recipe.distros
recipe = plone.recipe.distros
urls =
nested-packages =
version-suffix-packages =
[instance]
# Use this section to install and configure a Zope operating
# instance.
# For options see http://pypi.python.org/pypi/plone.recipe.zope2instance
recipe = plone.recipe.zope2instance
# The line below sets only the initial password. It will not change an
# existing password.
user = ${buildout:user}
http-address = ${buildout:http-address}
effective-user = plone
# change debug-mode to "on" to run in development mode
debug-mode = ${buildout:debug-mode}
# change verbose-security to "on" for detailed security
# errors while developing
verbose-security = off
# change deprecation-warnings to "on" to get log warnings
# for deprecated usages.
deprecation-warnings = off
blob-storage = ${buildout:directory}/var/blobstorage
# If you want Zope to know about any additional eggs, list them here.
# e.g. eggs = ${buildout:eggs} my.package
eggs =
${buildout:eggs}
# If you want to register ZCML slugs for any packages, list them here.
# e.g. zcml = my.package my.other.package
zcml =
${buildout:zcml}
products =
${buildout:directory}/products
${productdistros:location}
# You may also control the environment variables for the instance.
environment-vars =
PYTHON_EGG_CACHE ${buildout:directory}/var/.python-eggs
[zopepy]
# installs a zopepy python interpreter that runs with your
# full Zope environment
recipe = zc.recipe.egg
eggs = ${buildout:eggs}
interpreter = zopepy
scripts = zopepy
[zopeskel]
# installs paster and Zopeskel
recipe = zc.recipe.egg
eggs =
PasteScript
ZopeSkel
[chown]
# This recipe is used to set permissions -- and ownership for root mode installs
# For options see http://pypi.python.org/pypi/plone.recipe.command
recipe = plone.recipe.command
command =
chmod 600 .installed.cfg
find ${buildout:directory} -type d -name var -exec chown -R ${instance:effective-user} {} \;
find ${buildout:eggs-directory} -type d -name LC_MESSAGES -exec chown -R ${instance:effective-user} {} \;
find ${buildout:eggs-directory}/Products.kupu* -type d -name i18n -exec chown -R ${instance:effective-user} {} \;
find ${buildout:directory} -name runzope -exec chown ${instance:effective-user} {} \;
find ${buildout:directory}/var -type d -exec chmod 700 {} \;
chmod 744 ${buildout:directory}/bin/*
update-command = ${chown:command}
[unifiedinstaller]
# This recipe installs the plonectl script and a few other convenience
# items.
# For options see http://pypi.python.org/pypi/plone.recipe.unifiedinstaller
recipe = plone.recipe.unifiedinstaller
user = ${buildout:user}
primary-port = ${buildout:http-address}
sudo-command =sudo
[backup]
# This recipe builds the backup, restore and snapshotbackup commands.
# For options see http://pypi.python.org/pypi/collective.recipe.backup
recipe = collective.recipe.backup
location = ${buildout:backups-dir}/backups
snapshotlocation = ${buildout:backups-dir}/snapshotbackups
############################################
#
# Buildout Configuration File for Standalone Plone
# ------------------------------------------------
# $LastChangedDate: 2010-03-12 14:00:38 -0800 (Fri, 12 Mar 2010) $ $LastChangedRevision: 34285M $
#
# After making changes in this configuration file,
# you should run bin/buildout to update the components.
#
# ALWAYS back up all Plone/Zope data and components
# before changing configuration.
#
# Running "bin/buildout" will update your installation,
# installing missing components as necessary.
#
# Use "bin/buildout -n" to update many components here to the newest
# available releases.
# This will update the add-on products you've added in the eggs= lines.
# This will not, however, upgrade Plone itself (or anything else you've
# pinned with a version specification). To upgrade Plone itself, see the
# comments in "Plone Component Versions".
#
# Tutorial instructions for using zc.buildout for
# configuration management are available at:
# http://plone.org/documentation/tutorial/buildout
# Full details at http://pypi.python.org/pypi/zc.buildout
#
############################################
[buildout]
############################################
# Plone Component Versions
# ------------------------
# This version of the Unified Installer has the components
# of Plone 4 preloaded so that it can install without
# an Internet connection.
# If you want to update, uncomment the " http://..." below,
# edit it to point to the current version URL,
# comment out the " versions.cfg" line
# and run "bin/buildout -n" while attached to the Internet.
# Generally, you only want to do that as part
# of a planned migration.
#
extends =
base.cfg
versions.cfg
# http://dist.plone.org/release/4.0b1-1/versions.cfg
############################################
# Ports
# -----
# Specify the port on which your Zope installation
# will listen:
http-address = 8080
############################################
# Eggs
# ----
# Add an indented line to the eggs section for any Python
# eggs or packages you wish to include.
#
eggs =
Plone
neotheme.vidacord
Products.Collage
collective.recaptcha
Products.PloneFormGen
# Alpha note: many of the products below are not yet
# adapted to Plone 4.
#
# Optional Functionality
# ----------------------
# Uncomment the indented lines to include these products.
# Documentation on all of them, along with many more products,
# is available at
# http://plone.org/products/
#
# Commonly used products:
# * LinguaPlone provides tools for building multi-lingual sites
# * Products.CacheSetup adds the "CacheFu" Plone speedup kit
# * PloneHelpCenter is a simple knowledge base
# * PloneFormGen provides through-the-web form building
#
# Products.LinguaPlone
# Products.CacheSetup
# Products.PloneHelpCenter
# Products.PloneFormGen
#
# Commonly used development tools:
# * Clouseau uses AJAX to provide a Python prompt inside Plone
# * DocFinderTab puts an object documentation inspector in the Zope Management Interface
# * Gloworm is a Firebug-like viewlet inspector and customizer
# * plone.reload allows you to refresh Python code and ZCML configuration
# without restarting Zope. Note that to use plone.reload, you'll also
# need to uncomment the "zcml" entry for it below.
#
# Products.Clouseau
# Products.DocFinderTab
# Products.Gloworm
plone.reload
plone.app.blob
PIL
collective.collage.portlets
############################################
# ZCML Slugs
# ----------
# Some eggs need ZCML slugs to tell Zope to
# use them. This is increasingly rare.
zcml =
plone.reload
plone.app.blob
neotheme.vidacord
collective.recaptcha
Products.PloneFormGen
collective.collage.portlets
############################################
# Development Eggs
# ----------------
# You can use paster to create "development eggs" to
# develop new products/themes. Put these in the src/
# directory.
# You will also need to add the egg names in the
# eggs section above, and may also need to add them
# to the zcml section.
#
# Provide the *paths* to the eggs you are developing here:
develop =
# src/my.package
src/neotheme.vidacord
############################################
# Debug Mode
# ----------
# Change debug-mode to "on" to run in development mode.
#
debug-mode = off
############################################
# Backup Directory
# ----------------
# Sets the target directory for the bin/backup and bin/snapshotbackup
# commands. Default is inside this project's var directory, but ideally
# this should be on a separate volume or backup server.
#
backups-dir=${buildout:directory}/var
############################################
# Initial User
# ------------
# This is the user id and password that will be used to create the initial
# user id that will allow you to log in and create a Plone site. This only
# sets the initial password; it will not allow you to change an already
# existing password. If you change the admin password via the web interface,
# the one below will no longer be valid.
# If you find yourself locked out of your Zope/Python installation, you may
# add an emergency user via "bin/plonectl adduser".
user=admin:data
############################################
# Parts Specification
#--------------------
# Specifies the components that should be included in the buildout.
# All the basics are in the base.cfg extension; you may add your
# own if you need them at the end of this file.
parts =
productdistros
filestorage
instance
zopepy
zopeskel
backup
unifiedinstaller
chown
svnproducts
[filestorage]
recipe = collective.recipe.filestorage
blob-storage = var/blobstorage-%(fs_part_name)s
parts =
vidacord
[svnproducts]
recipe = infrae.subversion
urls =
http://svn.plone.org/svn/collective/Products.Collage/trunk Products.Collage
http://svn.plone.org/svn/collective/Products.Collage/addons/collective.collage.portlets/trunk collective.collage.portlets
[versions]
Cheetah = 2.2.1
Paste = 1.7.2
PasteScript = 1.7.3
ZopeSkel = 2.15
collective.recipe.backup = 1.3
plone.recipe.command = 1.0
plone.recipe.distros = 1.5
plone.recipe.unifiedinstaller = 4.0a1
PasteDeploy = 1.3.3
Products.Collage = 1.3.0-b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment