[FIX] Odoo 9-10: reload
handling
We were still trying to make the auto reload feature work with the 8.0 way in the dockerfile 9 and 10. This patch install the dependency used in Odoo 9-10 (watchdog instead of pyinotify) and remove the "auto-reload" key from the default configuration file, as the new syntax is "--dev=reload". The auto-reload is now disabled by default (it didn't work, let's not bother someone that does not need it). The easiest way to use it is to pass the arguments to the odoo process as: docker run -p 8069:8069 --name odoo --link db:db -t odoo:[9.0|10.0] -- --dev=reload fixes #84 fixes #98
This commit is contained in:
parent
d780e6fe36
commit
c97e82a93a
@ -10,9 +10,9 @@ RUN set -x; \
|
|||||||
node-less \
|
node-less \
|
||||||
python-gevent \
|
python-gevent \
|
||||||
python-pip \
|
python-pip \
|
||||||
python-pyinotify \
|
|
||||||
python-renderpm \
|
python-renderpm \
|
||||||
python-support \
|
python-support \
|
||||||
|
python-watchdog \
|
||||||
&& curl -o wkhtmltox.deb -SL http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb \
|
&& curl -o wkhtmltox.deb -SL http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb \
|
||||||
&& echo '40e8b906de658a2221b15e4e8cd82565a47d7ee8 wkhtmltox.deb' | sha1sum -c - \
|
&& echo '40e8b906de658a2221b15e4e8cd82565a47d7ee8 wkhtmltox.deb' | sha1sum -c - \
|
||||||
&& dpkg --force-depends -i wkhtmltox.deb \
|
&& dpkg --force-depends -i wkhtmltox.deb \
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
[options]
|
[options]
|
||||||
addons_path = /mnt/extra-addons,/usr/lib/python2.7/dist-packages/odoo/addons
|
addons_path = /mnt/extra-addons,/usr/lib/python2.7/dist-packages/odoo/addons
|
||||||
data_dir = /var/lib/odoo
|
data_dir = /var/lib/odoo
|
||||||
auto_reload = True
|
|
||||||
; admin_passwd = admin
|
; admin_passwd = admin
|
||||||
; csv_internal_sep = ,
|
; csv_internal_sep = ,
|
||||||
; db_maxconn = 64
|
; db_maxconn = 64
|
||||||
|
@ -10,9 +10,9 @@ RUN set -x; \
|
|||||||
node-less \
|
node-less \
|
||||||
python-gevent \
|
python-gevent \
|
||||||
python-pip \
|
python-pip \
|
||||||
python-pyinotify \
|
|
||||||
python-renderpm \
|
python-renderpm \
|
||||||
python-support \
|
python-support \
|
||||||
|
python-watchdog \
|
||||||
&& curl -o wkhtmltox.deb -SL http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb \
|
&& curl -o wkhtmltox.deb -SL http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb \
|
||||||
&& echo '40e8b906de658a2221b15e4e8cd82565a47d7ee8 wkhtmltox.deb' | sha1sum -c - \
|
&& echo '40e8b906de658a2221b15e4e8cd82565a47d7ee8 wkhtmltox.deb' | sha1sum -c - \
|
||||||
&& dpkg --force-depends -i wkhtmltox.deb \
|
&& dpkg --force-depends -i wkhtmltox.deb \
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
[options]
|
[options]
|
||||||
addons_path = /mnt/extra-addons,/usr/lib/python2.7/dist-packages/openerp/addons
|
addons_path = /mnt/extra-addons,/usr/lib/python2.7/dist-packages/openerp/addons
|
||||||
data_dir = /var/lib/odoo
|
data_dir = /var/lib/odoo
|
||||||
auto_reload = True
|
|
||||||
; admin_passwd = admin
|
; admin_passwd = admin
|
||||||
; csv_internal_sep = ,
|
; csv_internal_sep = ,
|
||||||
; db_maxconn = 64
|
; db_maxconn = 64
|
||||||
|
Loading…
Reference in New Issue
Block a user