Skip to main content

ZC Buildout recipe for setting up mongoDB.

Project description

Buildout recipe for downloading and installing a mongodb binary package.

A brief documentation

This recipe takes a number of options:

darwin-32bit-url
The URL to download the 32 bit binary package for the darwin platform.
darwin-64bit-url
The URL to download the 64 bit binary package for the darwin platform.
linux2-32bit-url
The URL to download the 32 bit binary package for the linux platform.
linux2-64bit-url
The URL to download the 64 bit binary package for the linux platform.

Tests

We will define a buildout template used by the recipe:

>>> buildout_cfg = """
... [buildout]
... parts = mongodb
...
... [mongodb]
... recipe = rod.recipe.mongodb
... darwin-32bit-url = http://downloads.mongodb.org/osx/mongodb-osx-i386-0.9.7.tgz
... """

We’ll start by creating a buildout:

>>> import os.path
>>> write('buildout.cfg', buildout_cfg)

Running the buildout gives us:

>>> output = system(buildout)
>>> if output.endswith("downloading mongoDB distribution...\n"): True
... else: print output
True

Changes

1.0.0 2009-08-14

  • Initial release.

Project details


Download files

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

Files for rod.recipe.mongodb, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size rod.recipe.mongodb-1.0.0-py2.5.egg (8.7 kB) File type Egg Python version 2.5 Upload date Hashes View hashes
Filename, size rod.recipe.mongodb-1.0.0.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page