Commit b20f8a26 authored by Łukasz Nowak's avatar Łukasz Nowak

- implement oood instance generation with extending required dependency

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32615 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b5c4204
# OpenOffice.org daemon instance buildout
[buildout]
parts = oood-instance
[configuration]
oood_conf_file = ${buildout:etc-directory}/oood.conf
oood_log_file = ${buildout:log-directory}/oood.log
oood_home = ${oood:location}/oood
oood_run = ${buildout:var-directory}/oood
oood_tmp = ${:oood_run}
oood_host = 127.0.0.1
oood_port = 8008
oood_pool_host = localhost
oood_pool_range_start = 4060
oood_instance_load_time = 20
oood_instance_timeout = 360
oood_virtual_display_id = 99
[oood-etc]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/oood.conf.in
output = ${configuration:oood_conf_file}
[oood-instance]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/oood-runserw.in
output = ${buildout:data-bin-directory}/oood-runserw
[requirements]
binary = Xvfb
[buildout]
extends =
instance-profiles/mysql.cfg
instance-profiles/oood.cfg
instance-profiles/zope.cfg
profiles/versions.cfg
software-profiles/apache.cfg
software-profiles/erp5.cfg
......
......@@ -23,6 +23,7 @@ package_list =
subversion
subversion-devel
subversion-tools
x11-server-xvfb
zlib1-devel
command = echo "${:package_list}" | xargs sudo urpmi --auto
......
#!/bin/sh
cd ${buildout:etc-directory} && ${configuration:openoffice_python} ${oood:location}/oood/runserw.py $@
##############################################################################
#
# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
###################################################################
# System config
###################################################################
[System]
# Folder where all oood core files are installed
oood_home = ${configuration:oood_home}
# Folder where pid files, lock files and virtual frame buffer mappings are stored
run_dir = ${configuration:oood_run}
tmp_dir = ${configuration:oood_tmp}
# Folder where OpenOffice Uno interpreter is installed
uno_path = ${configuration:openoffice_uno}
# Folder where soffice is installed (default: uno_path)
prog_dir = ${configuration:openoffice_program}
# Complete absolute path to the log file
log_file = ${configuration:oood_log_file}
# debug_mode tells oood to leave files in tmp directory
debug_mode = False
log_level = logging.DEBUG
###################################################################
# Server settings
###################################################################
[Server]
server_host = ${configuration:oood_host}
# Other http-alt ports are 591 and 8080
server_port = ${configuration:oood_port}
# name of local printer to print files directly
printer_name = default_printer
###################################################################
# Pool settings
###################################################################
[Pool]
# The pool consist of several OpenOffice.org instances
pool_host = ${configuration:oood_pool_host}
# According www.iana.org/assignments/port-numbers , 4060-4088 port range is unassigned
pool_port_range_start = ${configuration:oood_pool_range_start}
# time in seconds we have to give one OOo instance to load in restart
instance_load_time = ${configuration:oood_instance_load_time}
# seconds to wait before killing and restarting OOo instance
instance_timeout = ${configuration:oood_instance_timeout}
# ID of the virtual display where OOo instances are launched
virtual_display_id = ${configuration:oood_virtual_display_id}
###################################################################
# Formats
###################################################################
# Here you can configure which file formats should be included on the
# "target format item list" and which should be skipped
# by either specifying formats to use, or formats to skip
# default is using all formats defined in mimemapper
# Format list should be given as comma-separated list of extensions
# (as defined in mimemapper)
# example:
# [Text]
# use_formats = odt, doc, rtf, html-writer, pdf
# [Spreadsheet]
# skip_formats = slk, pxl, 3_0.sdc.vor
# XXX for now, if you use this option, you MUST include ODF format in
# your "use" list, otherwise oood will return an empty list. This is a
# bug and will be fixed.
[Text]
#use_formats = All
#skip_formats = None
[Spreadsheet]
#use_formats = All
#skip_formats = None
[Presentation]
#use_formats = All
#skip_formats = None
[Drawing]
#use_formats = All
#skip_formats = None
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