forked from Comunitea/odoo_buildout_base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base-odoo-pgcontrib-connector.cfg
159 lines (141 loc) · 6.34 KB
/
base-odoo-pgcontrib-connector.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[python]
recipe = zc.recipe.egg
interpreter = python
eggs = ${buildout:eggs}
[scripts]
recipe = zc.recipe.egg:scripts
eggs = ${buildout:eggs}
dependent-scripts = true
[postgres]
recipe = hexagonit.recipe.cmmi
url = http://ftp.postgresql.org/pub/source/v${settings:postgres_version}/postgresql-${settings:postgres_version}.tar.bz2
keep-compile-dir = false
configure-options = --with-pgport=${openerp:options.db_port}
make-options = world
make-targets = install-world
[postgres-conf]
recipe = collective.recipe.template
input = ${buildout:templates-directory}/postgresql.conf.in
output = ${buildout:config-directory}/postgresql.conf
[pg-hba-conf]
recipe = collective.recipe.template
input = ${buildout:templates-directory}/pg_hba.conf.in
output = ${buildout:config-directory}/pg_hba.conf
[pg-ident-conf]
recipe = collective.recipe.template
input = ${buildout:templates-directory}/pg_ident.conf.in
output = ${buildout:config-directory}/pg_ident.conf
[psycopg2]
recipe = zc.recipe.egg:custom
egg = psycopg2
include-dirs = ${postgres:location}/include
library-dirs = ${postgres:location}/lib
rpath = ${postgres:location}/lib
[initdb]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds =
test -e ${buildout:directory}/data ||
${postgres:location}/bin/initdb ${buildout:directory}/data
test -e ${buildout:bin-directory}/psql ||
ln -s ${postgres:location}/bin/psql ${buildout:bin-directory}
echo ""
echo "To start PosrgreSQL and Supervisord run:"
echo "$ supervisord"
echo ""
echo "To create the database run:"
echo "$ psql -d postgres -c 'CREATE DATABASE ${openerp:options.db_name}'"
echo ""
echo "To shutdown Supervisord with all deamons:"
echo "$ supervisorctl shutdown run:"
echo ""
echo "To Restart Postgres run:"
echo "$ supervisorctl restart postgres"
echo ""
echo "To start OpenERP run:"
echo "$ start_openerp"
echo ""
${buildout:bin-directory}/supervisorctl shutdown
sleep 2
${buildout:bin-directory}/supervisord
sleep 5
${postgres:location}/bin/createdb ${openerp:options.db_name}
if [ ${settings:openerp_unaccent} = True ]; then
${postgres:location}/bin/psql -d ${openerp:options.db_name} -c 'CREATE EXTENSION IF NOT EXISTS unaccent'
fi
[supervisor-cron]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:bin-directory}/supervisord
[openerp]
recipe = anybox.recipe.openerp:server
vcs-clear-retry = True
version = git https://github.com/OCA/OCB.git odoo 8.0
addons = git https://github.com/OCA/reporting-engine.git odoo-repos/reporting-engine 8.0
git https://github.com/OCA/l10n-spain odoo-repos/spain 8.0
git https://github.com/Pexego/stock-logistic-warehouse.git odoo-repos/stock-logistic-warehouse 8.0
git https://github.com/OCA/bank-statement-import.git odoo-repos/bank-statement-import 8.0
git https://github.com/OCA/partner-contact.git odoo-repos/partner-contact 8.0
git https://github.com/OCA/product-attribute.git odoo-repos/product-attribute 8.0
git https://github.com/OCA/commission.git odoo-repos/commission 8.0
git https://github.com/OCA/server-tools.git odoo-repos/server-tools 8.0
git https://github.com/OCA/bank-payment.git odoo-repos/bank-payment 8.0
git https://github.com/OCA/account-payment.git odoo-repos/account-payment 8.0
git https://github.com/OCA/account-financial-reporting.git odoo-repos/account-financial-reporting 8.0
git https://github.com/OCA/account-financial-tools.git odoo-repos/account-financial-tools 8.0
git https://github.com/OCA/web.git odoo-repos/web 8.0
git https://github.com/OCA/account-invoicing.git odoo-repos/account-invoicing 8.0
git https://github.com/OCA/connector.git odoo-repos/connector 8.0
git https://github.com/OCA/report-print-send odoo-repos/report-print-send 8.0
git https://github.com/OCA/purchase-workflow.git odoo-repos/purchase-workflow 8.0
git https://github.com/OCA/sale-workflow.git odoo-repos/sale-workflow 8.0
git https://github.com/OCA/connector-interfaces.git odoo-repos/connector-interfaces 8.0
git https://github.com/OCA/bank-statement-reconcile.git odoo-repos/bank-statement-reconcile 8.0
git https://github.com/Comunitea/external_modules.git odoo-repos/external 8.0
local parts/odoo/addons/
merges =
eggs = unidecode
ipdb
pyPdf
unicodecsv
options.db_host = ${settings:postgres_host}
options.admin_passwd = ${settings:openerp_admin_passwd}
options.db_name = ${settings:postgres_db_name}
options.db_user = ${settings:postgres_user}
options.db_password = ${settings:postgres_password}
options.db_maxconn = ${settings:postgres_maxconn}
options.db_port = ${settings:postgres_port}
options.xmlrpc_port = ${settings:openerp_xmlrpc_port}
options.xmlrpcs_port = ${settings:openerp_xmlrpcs_port}
options.workers = ${settings:openerp_workers}
options.limit_time_cpu = ${settings:openerp_limit_time_cpu}
options.limit_time_real = ${settings:openerp_limit_time_real}
options.log_level = ${settings:openerp_log_level}
options.unaccent = ${settings:openerp_unaccent}
options.without_demo = ${settings:openerp_without_demo}
options.pg_path = ${buildout:directory}/parts/postgres/bin
[env]
recipe = gocept.recipe.env
[static-analysis]
recipe = zc.recipe.egg
eggs = flake8
[supervisor]
recipe = collective.recipe.supervisor
port = ${settings:supervisor_port}
serverurl = ${settings:supervisor_url}:${supervisor:port}
connector_workers = 2
logfile_openerp_connector = ${buildout:directory}/var/log/openerp-connector-stdout.log
supervisord-environment = ODOO_CONNECTOR_CHANNELS=root:${:connector_workers}
programs =
10 postgres ${postgres:location}/bin/postmaster [ --config-file=${buildout:config-directory}/postgresql.conf ]
20 openerp ${buildout:directory}/bin/start_openerp [ --load=web,connector --workers=${settings:openerp_workers}]
30 openerp_connector_worker "${buildout:directory}/bin/python_openerp" [ "${buildout:directory}/odoo-repos/connector/connector/openerp-connector-worker" --config="${buildout:directory}/etc/openerp.cfg" --logfile "${:logfile_openerp_connector}" --workers=${:connector_workers} --limit-time-real=10800] ${buildout:directory}/bin true
[py]
recipe = zc.recipe.egg
eggs = ${buildout:eggs}
interpreter = py
scripts = py
[build_templates]
recipe = z3c.recipe.filetemplate
source-directory = build_templates