SlapOS toolbox.
Project description
slapos.toolbox
0.15 (2012-01-09)
slaprunner: Adding project and git repository management [Alain Takoudjou]
0.14 (2012-01-09)
onetimeupload: SSL should be provided by an http frontend [Romain Courteaud]
0.13 (2011-12-30)
builder: fix usage of mkstemp [Romain Courteaud]
0.12 (2011-12-29)
builder: dynamic offset calculation [Romain Courteaud]
0.11 (2011-12-23)
equeue: Add execution queue server. [Antoine Catton]
pubsub: Add pubsub server using pubsubhubbub for notifications. [Antoine Catton]
0.10 (2011-11-07)
slapbuilder: Support banging. [Łukasz Nowak]
lamp : Fix bug when using file_token option [Alain Takoudjou]
0.9 (2011-10-29)
Add LAMP tool to manage lamp instances. [Alain Takoudjou]
Add onetimedownload : a simple script which download any http resource and save it into a specified file_path. [Nicolas Delaby]
0.8 (2011-10-24)
Add new style to runner. [Alain Takoudjou]
0.7 (2011-10-17)
generic: Added systool with killpidfromfile. [Łukasz Nowak]
slaprunner: Avoid error when trying to remove instance directory containing not writable directories. [Alain Takoudjou]
0.6 (2011-07-13)
slapbuilder: Typo during PKI repository creation fixed. [Łukasz Nowak]
0.5 (2011-07-12)
slapbuilder: Do not play too much with buildout, SlapOS installation is responsible for correctly featured zc.buildout [Łukasz Nowak]
0.4 (1011-07-11)
Update slaprunner to run on newer slapos (requires at least 0.10 to work). [Cedric de Saint Martin]
0.3 (2011-06-27)
slapbuilder: use slapos provided networkcached buildout.
slapbuilder: fix network issues on busy networks (“Neighbour table overflow.”)
0.2 (2011-06-10)
In slapbuilder: drop to 100 partitions by default, move out PKI from USB key to real disk. [Łukasz Nowak]
0.1 (2011-05-27)
Created slapos.toolbox from slapos.tool.builder, slapos.tool.runner, slapos.tool.cloudmgr, slapos.tool.ontimeupload and slapos.tool.networkcache. [Łukasz Nowak]
builder
builder is a program to install a slapos image.
cloudmgr
monitor
Monitoring for SLAP (Simple Language for Accounting and Provisioning) python library.
onetimeupload
onetimeupload is an HTTP application which only accepts one file to be uploaded.
shacache
The network cache server is a NoSQL storage with a REST API.
How does it works
_______________ / \ | | ------>| NETWORKCACHED | | ----| |<----- | | \_______________/ | GET /key | | | | | File | PUT / <- data __|__v______ ______|_____ | | | | | Client | | Client | |____________| |____________|
Basically, the networkcached archives the files through HTTP PUT method. When a client want to download the file it just need to provide the key value and the server will send a response with the file data.
API: PUT / : parameter: file uploaded Used to upload/modify an entry GET /<key> Return raw content Raise HTTP error (404) if key does not exist
Installation
$ python2.6 setup.py install
Now it is time to create the ‘networkcached.conf’ file in /etc/networkcached.conf directory, using your preferred text editor (gedit, kate, vim.). Follow text shall be put in this file:
[networkcached] host = 127.0.0.1 port = 5001 cache_base_folder = /var/cache/networkcached/
Run the server:
# networkcached networkcached.conf
Setup Develoment Environment
$ mkdir -p ~/networkcached/downloads $ cd ~/networkcached
Now it is time to create ‘buildout.cfg’ file in ~/networkcached directory, using your preferred text editor (gedit, kate, vim.). Follow text shall be put in this file:
[buildout] extensions = mr.developer auto-checkout = slapos.tool.networkcached download-cache = /nexedi/buildout-networkcached/downloads eggs-directory = /nexedi/buildout-networkcached/eggs parts = networkcached [sources] slapos.tool.networkcached = svn https://svn.erp5.org/repos/vifib/trunk/utils/slapos.tool.networkcached [networkcached] recipe = zc.recipe.egg eggs = slapos.tool.networkcached
Now you bootstrap the buildout:
$ python -S -c 'import urllib;print urllib.urlopen(\ "http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py"\ ).read()' | python -S -
Run the buildout:
$ bin/buildout -v
Now it is time to create the ‘networkcached.conf’ file in ~/networkcached directory, using your preferred text editor (gedit, kate, vim.). Follow text shall be put in this file:
[networkcached] host = 127.0.0.1 port = 5001 cache_base_folder = ~/networkcached/networkcached-database
Now you can start your networkcached server: $ bin/networkcached networkcached.conf or $ bin/networkcached -d networkcached-database -a 127.0.0.1 -p 5002
webrunner
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.