Commit efe445da authored by Gabriel Monnerat's avatar Gabriel Monnerat

- update README

- add sample of cloudooo configuration
- rename cloudooo.conf to cloudooo.conf.in, because it will be used by echo_cloudooo_conf script and is more templeable.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@38431 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fa98ad64
......@@ -3,7 +3,8 @@ Install Cloudooo
$ python2.6 setup.py install
Warning: you must have installed setuptools>=0.6c11 in this python.
Warnings:
- you must have installed setuptools>=0.6c11 in this python.
Install Dependencies in Mandriva
================================
......@@ -38,12 +39,12 @@ Create Configuration File
=========================
The configuration file is used to start the application using paster.
$ cp ./cloudooo/samples/cloudooo.conf . # Copy to current folder
$ cp ./cloudooo/samples/samples.conf . # Copy to current folder
The next step is define some attributes in cloudooo.conf:
- working_path - folder to run the application. This folder need be created.
- uno_path - full path to UNO library;
- soffice_bin_path - full path to soffice.bin;
- soffice_binary_path - full path to soffice.bin;
Run Application
===============
......
......@@ -106,7 +106,7 @@ class MimeMapper(object):
office_binary_path = kw.get("office_binary_path", environ.get('office_binary_path'))
command = [python_path
, "'-c'"
, "'from cloudooo.bin.unomimemapper import main;main()'"
, "'from cloudooo.bin.unomimemapper import main;main()'"
, "'--uno_path=%s'" % uno_path
, "'--office_binary_path=%s'" % office_binary_path
, "'--hostname=%s'" % hostname, "--port=%s" % port]
......
......@@ -7,41 +7,41 @@ debug_mode = True
# 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.
working_path = @WORKING_PATH@
working_path = /hd/cloudooo/run
# Folder where OpenOffice Uno interpreter is installed
uno_path = @UNO_PATH@
uno_path = /opt/openoffice.org3/basis-link/program
# Folder where OpenOffice Binarie is installed
office_binary_path = @OFFICE_BINARY_PATH@
office_binary_path = /opt/openoffice.org3/program
#
## Monitor Settings
#
# Limit to use the Openoffice Instance. if pass of the limit, the instance is
# stopped and another is started.
limit_number_request = @NUMBER_MAXIMUM_OF_REQUEST@
limit_number_request = 100
# Interval to check the factory
monitor_interval = @MONITOR_INTERVAL@
timeout_response = @TIMEOUT_RESPONSE@
enable_memory_monitor = @ENABLE_MEMORY_MONITOR@
monitor_interval = 10
timeout_response = 180
enable_memory_monitor = True
# Set the limit in MB
# e.g 1000 = 1 GB, 100 = 100 MB
limit_memory_used = @MAXIMUM_USE_BY_OPENOFFICE@
limit_memory_used = 3000
#
## OOFactory Settings
#
# The pool consist of several OpenOffice.org instances
application_hostname = @APPLICATION_HOSTNAME@
application_hostname = localhost
# OpenOffice Port
openoffice_port = @OPENOFFICE_PORT@
openoffice_port = 4062
#
## Xvfb Settings
#
# Default port to xvfb
virtual_display_port = @XVFB_PORT@
virtual_display_port = 6097
# ID of the virtual display where OOo instances are launched
virtual_display_id = @XVFB_DISPLAY_ID@
virtual_screen = @XVFB_SCREEN_NUMBER@
virtual_display_id = 97
virtual_screen = 0
[server:main]
use = egg:PasteScript#wsgiutils
host = @SERVER_HOST@
port = @SERVER_PORT@
host = 0.0.0.0
port = 8011
[app:main]
use = egg:cloudooo
debug_mode = @DEBUG_MODE@
working_path = @WORKING_PATH@
uno_path = @UNO_PATH@
office_binary_path = @OFFICE_BINARY_PATH@
limit_number_request = @NUMBER_MAXIMUM_OF_REQUEST@
monitor_interval = @MONITOR_INTERVAL@
timeout_response = @TIMEOUT_RESPONSE@
enable_memory_monitor = @ENABLE_MEMORY_MONITOR@
limit_memory_used = @MAXIMUM_USE_BY_OPENOFFICE@
application_hostname = @APPLICATION_HOSTNAME@
openoffice_port = @OPENOFFICE_PORT@
virtual_display_port = @XVFB_PORT@
virtual_display_id = @XVFB_DISPLAY_ID@
virtual_screen = @XVFB_SCREEN_NUMBER@
[server:main]
use = egg:PasteScript#wsgiutils
host = @SERVER_HOST@
port = @SERVER_PORT@
[app:main]
use = egg:cloudooo
#
## System config
#
debug_mode = True
# 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.
working_path = /hd/cloudooo/run
# Folder where OpenOffice Uno interpreter is installed
uno_path = /opt/openoffice.org3/basis-link/program
# Folder where OpenOffice Binarie is installed
office_binary_path = /opt/openoffice.org3/program
#
## Monitor Settings
#
# Limit to use the Openoffice Instance. if pass of the limit, the instance is
# stopped and another is started.
limit_number_request = 100
# Interval to check the factory
monitor_interval = 10
timeout_response = 180
enable_memory_monitor = True
# Set the limit in MB
# e.g 1000 = 1 GB, 100 = 100 MB
limit_memory_used = 3000
#
## OOFactory Settings
#
# The pool consist of several OpenOffice.org instances
application_hostname = localhost
# OpenOffice Port
openoffice_port = 4062
#
## Xvfb Settings
#
# Default port to xvfb
virtual_display_port = 6097
# ID of the virtual display where OOo instances are launched
virtual_display_id = 97
virtual_screen = 0
[server:main]
use = egg:PasteScript#wsgiutils
host = 0.0.0.0
port = 8011
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment