This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Help us improve Python packaging - Donate today!
Project Description

This recipe can be used to create deployments that are located in a sandbox. This is useful for deploying self-contained buildouts or for development setups that are going to use a deployment recipe in the future.

It is compatible to zc.recipe.deployment and can be used as a drop-in.

It is not intended for system-wide deployments, please use zc.recipe.deployment for that.

Change history

0.2 (2009-06-05)

  • Allow to override single variables in the section.

0.1.1 (2008-02-27)

  • Using $LOGNAME instead of os.getlogin to set the user.

0.1.0 (2008-02-15)

  • Initial release.

Detailed Documentation

Sandbox environments

This recipe creates a sandbox environment for deployments similar to zc.recipe.deployment. It is not intended for system-wide installation but as a sandboxed/development variation of the deployment pattern.

For production, system-wide deployments you can simply switch out a sandbox deployment part with a real deployment part.

A root directory is defined for the sandbox (by default this is parts/${name}) in which the following directory structure is created:

${root}/var/run
${root}/var/log
${root}/etc/
${root}/etc/cron.d
${root}/etc/init.d
${root}/etc/logrotate.d

Additionally to be able to mix multiple deployments within a single sandbox we compute the following paths compatible to zc.recipe.deployment:

crontab-directory
logrotate-directory
rc-directory
run-directory
log-directory
etc-directory

Also, the user option is setup to match the current user.

Supported options

The recipe supports a single optional option:

root
Optional: The root directory of the sandbox. Will be computed from the section name if not given.

Example usage

We’ll start by creating a buildout that uses the recipe.

>>> import os
>>> write('buildout.cfg',
... """
... [buildout]
... parts = deployment
...
... [deployment]
... recipe = gocept.recipe.deploymentsandbox
... """)

Running the buildout gives us:

>>> print system(buildout)
Installing deployment.
>>> ls(sample_buildout, 'parts')
d deployment
>>> ls(sample_buildout, 'parts', 'deployment')
d etc
d var
>>> ls(sample_buildout, 'parts', 'deployment', 'etc')
d  cron.d
d  deployment
d  init.d
d  logrotate.d
>>> ls(sample_buildout, 'parts', 'deployment', 'var')
d log
d run
>>> ls(sample_buildout, 'parts', 'deployment', 'var', 'log')
d deployment
>>> ls(sample_buildout, 'parts', 'deployment', 'var', 'run')
d deployment

Contributors

Christian Theune, Author

Download

Release History

Release History

0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1dev

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
gocept.recipe.deploymentsandbox-0.2.tar.gz (5.5 kB) Copy SHA256 Checksum SHA256 Source Jun 5, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting