Skip to content

Commit c97e82a

Browse files
committed
[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
1 parent d780e6f commit c97e82a

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

10.0/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ RUN set -x; \
1010
node-less \
1111
python-gevent \
1212
python-pip \
13-
python-pyinotify \
1413
python-renderpm \
1514
python-support \
15+
python-watchdog \
1616
&& curl -o wkhtmltox.deb -SL http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb \
1717
&& echo '40e8b906de658a2221b15e4e8cd82565a47d7ee8 wkhtmltox.deb' | sha1sum -c - \
1818
&& dpkg --force-depends -i wkhtmltox.deb \

10.0/odoo.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[options]
22
addons_path = /mnt/extra-addons,/usr/lib/python2.7/dist-packages/odoo/addons
33
data_dir = /var/lib/odoo
4-
auto_reload = True
54
; admin_passwd = admin
65
; csv_internal_sep = ,
76
; db_maxconn = 64

9.0/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ RUN set -x; \
1010
node-less \
1111
python-gevent \
1212
python-pip \
13-
python-pyinotify \
1413
python-renderpm \
1514
python-support \
15+
python-watchdog \
1616
&& curl -o wkhtmltox.deb -SL http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb \
1717
&& echo '40e8b906de658a2221b15e4e8cd82565a47d7ee8 wkhtmltox.deb' | sha1sum -c - \
1818
&& dpkg --force-depends -i wkhtmltox.deb \

9.0/openerp-server.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[options]
22
addons_path = /mnt/extra-addons,/usr/lib/python2.7/dist-packages/openerp/addons
33
data_dir = /var/lib/odoo
4-
auto_reload = True
54
; admin_passwd = admin
65
; csv_internal_sep = ,
76
; db_maxconn = 64

0 commit comments

Comments
 (0)