[Erp5-report] r37666 gabriel - in /erp5/trunk/utils/erp5.recipe.cloudoooinstance: ./ src/ s...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Aug 9 22:27:34 CEST 2010
Author: gabriel
Date: Mon Aug 9 22:27:32 2010
New Revision: 37666
URL: http://svn.erp5.org?rev=37666&view=rev
Log:
initial commit to cloudooo recipe
Added:
erp5/trunk/utils/erp5.recipe.cloudoooinstance/setup.py
erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/
erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/
erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/__init__.py
erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/
erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/__init__.py
erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/cloudoooinstance/
erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/cloudoooinstance/__init__.py
erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/cloudoooinstance/cloudooo.conf.in
Added: erp5/trunk/utils/erp5.recipe.cloudoooinstance/setup.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.cloudoooinstance/setup.py?rev=37666&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.cloudoooinstance/setup.py (added)
+++ erp5/trunk/utils/erp5.recipe.cloudoooinstance/setup.py [utf8] Mon Aug 9 22:27:32 2010
@@ -0,0 +1,26 @@
+from setuptools import setup, find_packages
+
+name = "erp5.recipe.cloudoooinstance"
+version = '0.0.1'
+
+setup(
+ name = name,
+ version = version,
+ author = "Gabriel M. Monnerat",
+ author_email = "gabriel at tiolive.com",
+ description = "ZC Buildout recipe for installing a oood instance",
+ long_description="""\n""",
+ license = "ZPL 2.1",
+ keywords = "cloud buildout",
+ classifiers=[
+ "License :: OSI Approved :: Zope Public License",
+ "Framework :: Buildout",
+ ],
+ packages = find_packages('src'),
+ include_package_data = True,
+ package_dir = {'':'src'},
+ install_requires=["z3c.recipe.template",],
+ namespace_packages = ['erp5', 'erp5.recipe'],
+ zip_safe=False,
+ entry_points = {'zc.buildout': ['default = %s:Recipe' % name]},
+ )
Added: erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/__init__.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/__init__.py?rev=37666&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/__init__.py (added)
+++ erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/__init__.py [utf8] Mon Aug 9 22:27:32 2010
@@ -0,0 +1,6 @@
+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)
Added: erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/__init__.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/__init__.py?rev=37666&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/__init__.py (added)
+++ erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/__init__.py [utf8] Mon Aug 9 22:27:32 2010
@@ -0,0 +1,6 @@
+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)
Added: erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/cloudoooinstance/__init__.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/cloudoooinstance/__init__.py?rev=37666&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/cloudoooinstance/__init__.py (added)
+++ erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/cloudoooinstance/__init__.py [utf8] Mon Aug 9 22:27:32 2010
@@ -0,0 +1,18 @@
+from os import path, chmod
+import logging
+import z3c.recipe.template as z3c_template
+
+class Recipe(z3c_template.Recipe):
+ __module__ = __name__
+
+ def __init__(self, buildout, name, options):
+ options['input'] = path.join(path.abspath(path.dirname(__file__)),
+ "cloudooo.conf.in" )
+ z3c_template.Recipe.__init__(self, buildout, name, options)
+
+ def install(self):
+ z3c_template.Recipe.install(self)
+ chmod(self.output, 0755)
+ return []
+
+ update = install
Added: erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/cloudoooinstance/cloudooo.conf.in
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/cloudoooinstance/cloudooo.conf.in?rev=37666&view=auto
==============================================================================
--- erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/cloudoooinstance/cloudooo.conf.in (added)
+++ erp5/trunk/utils/erp5.recipe.cloudoooinstance/src/erp5/recipe/cloudoooinstance/cloudooo.conf.in [utf8] Mon Aug 9 22:27:32 2010
@@ -0,0 +1,69 @@
+#!${buildout:bin-directory}/paster
+[app:main]
+use = egg:cloudooo
+#
+## System config
+#
+debug_mode = ${debug-mode}
+# Folder where all cloudooo core files are installed
+cloudooo_home = ${buildout:directory}/
+# Folder where pid files, lock files and virtual frame buffer mappings
+# are stored. In this folder is necessary create a folder tmp, because this
+# folder is used to create all temporary documents.
+path_dir_run_cloudooo = ${path-dir-run-cloudooo}
+# Folder where OpenOffice Uno interpreter is installed
+uno_path = ${uno-path}
+# Folder where OpenOffice Binarie is installed
+office_bin_path = ${office-bin-path}
+#
+## Monitor Settings
+#
+# Limit to use the Openoffice Instance. if pass of the limit, the instance is
+# stopped and another is started.
+limit_number_request = ${request-limit}
+# Interval to check the factory
+monitor_interval = ${monitor-interval}
+timeout_response = ${timeout-response}
+enable_memory_monitor = ${enable-memory-monitor}
+# Set the limit in MB
+# e.g 1000 = 1 GB, 100 = 100 MB
+limit_memory_used = ${memory-limit}
+# Filename that will be used to test the connection with openoffice.
+document_name = test.odt
+#
+## Application Settings
+#
+#
+# hostname to start Xvfb and OpenOffice
+application_hostname = ${hostname}
+# Timeout to wait the process start
+start_timeout = ${start-timeout}
+# OpenOffice Port
+openoffice_port = ${openoffice-port}
+#
+## Xvfb Settings
+#
+# Default port to xvfb
+virtual_display_port = ${virtual-display-port}
+# ID of the virtual display where OOo instances are launched
+virtual_display_id = ${virtual-display-id}
+virtual_screen = ${virtual-screen}
+# Put where is the conversors-bin
+unoconverter_bin=${unoconverter-bin}
+unomimemapper_bin=${unomimemapper-bin}
+
+# Python path e.g /usr/local/bin/python
+python_path = ${python-path}
+
+[server:main]
+use = egg:PasteScript#wsgiutils
+host = ${server-hostname}
+port = ${server-port}
+
+[exe]
+command = serve
+daemon = true
+user = ${user}
+group = ${group}
+log-file = ${buildout:log-directory}/cloudooo.log
+pid-file = ${buildout:run-directory}/cloudooo.pid
More information about the Erp5-report
mailing list