Deploying Applications with zc.buildout


March 12, 2011

Jim Fulton
jim@zope.com

http://www.riversnake.com/pycon2011/full

Background

make pain

setuptools and easy_install

zc.buildout

Be kind to operations

Software installation

Example CMS Application

machines.png

development buildout.cfg

Software deployment

Generating a source release

dbsource.cfg

Generating an RPM

cmsappdb.spec

Configuration

/etc/cmsappdb/ample.cfg

Installed paths

/etc/ample
/etc/ample/gc-config
/etc/ample/index-zdaemon.conf
/etc/ample/index-zeo.conf
/etc/ample/main-zdaemon.conf
/etc/ample/main-zeo.conf
/etc/ample/pack.sh
/var/log/ample
/var/run/ample
/etc/init.d/ample-main
/etc/init.d/ample-index
/etc/init.d/ample
/etc/cron.d/ample-pack

Meta recipe

cmsappdbmetarecipe.py

Managing whole applications

Future work: makemea

Questions?

These slides:
On PyCon web site and at http://www.riversnake.com/pycon2011/
Longer version:
http://www.riversnake.com/pycon2011/full