-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase-odoo-pgcontrib.cfg
144 lines (127 loc) · 4.91 KB
/
base-odoo-pgcontrib.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
[sources]
anybox.recipe.odoo = git https://github.com/anybox/anybox.recipe.odoo/ branch=master
supervisor = git https://github.com/Supervisor/supervisor/ branch=master
[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=${odoo: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 ${odoo: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 Odoo run:"
echo "$ start_odoo"
echo ""
sleep 2
sleep 10
${postgres:location}/bin/createdb ${odoo:options.db_name}
if [ ${settings:odoo_unaccent} = True ]; then
${postgres:location}/bin/psql -d ${odoo:options.db_name} -c 'CREATE EXTENSION IF NOT EXISTS unaccent'
fi
[odoo]
recipe = anybox.recipe.odoo:server
vcs-clear-retry = True
version = git https://github.com/OCA/OCB.git odoo 11.0 depth=1
addons = git https://github.com/OCA/reporting-engine.git odoo-repos/reporting-engine 11.0
git https://github.com/OCA/account-financial-reporting.git odoo-repos/account-financial-reporting 11.0
git https://github.com/OCA/server-ux.git odoo-repos/server-ux 11.0
git https://github.com/OCA/queue.git odoo-repos/queue 11.0
git https://github.com/OCA/account-invoicing.git odoo-repos/account-invoicing 11.0
git https://github.com/OCA/l10n-spain odoo-repos/spain 11.0
git https://github.com/OCA/web odoo-repos/web 11.0
git https://github.com/Comunitea/product-variant.git odoo-repos/product-variant 11.0-mig-sale_order_variant_mgmt
local parts/odoo/addons/
eggs = unidecode
ipdb
pyPdf
unicodecsv
anybox.recipe.odoo
zeep
requests
pyopenssl
options.db_host = ${settings:postgres_host}
options.admin_passwd = ${settings:odoo_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:odoo_xmlrpc_port}
options.xmlrpcs_port = ${settings:odoo_xmlrpcs_port}
options.workers = ${settings:odoo_workers}
options.limit_time_cpu = ${settings:odoo_limit_time_cpu}
options.limit_time_real = ${settings:odoo_limit_time_real}
options.log_level = ${settings:odoo_log_level}
options.unaccent = ${settings:odoo_unaccent}
options.without_demo = ${settings:odoo_without_demo}
options.pg_path = ${settings:odoo_pg_path}
options.dbfilter =${settings:odoo_dbfilter}
[env]
recipe = gocept.recipe.env
[static-analysis]
recipe = zc.recipe.egg
eggs = flake8
[supervisor]
recipe = collective.recipe.supervisor
supervisord-conf = ${buildout:directory}/etc/supervisord.conf
logfile = ${buildout:directory}/var/log/supervisord.log
pidfile = ${buildout:directory}/var/supervisord.pid
loglevel = info
logfile_odoo = ${buildout:directory}/var/log/odoo-stdout.log
port = ${settings:supervisor_port}
serverurl = ${settings:supervisor_url}:${supervisor:port}
programs =
10 postgres ${postgres:location}/bin/postmaster [ --config-file=${buildout:config-directory}/postgresql.conf ]
20 odoo (autostart=true) "${buildout:directory}/bin/start_odoo" [ --logfile "${:logfile_odoo}"] ${buildout:directory} true
[supervisor-cron]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:bin-directory}/supervisord
[py]
recipe = zc.recipe.egg
eggs = ${buildout:eggs}
interpreter = py
scripts = py