Skip to content

Commit

Permalink
[ADD] extra addons dir for users addons
Browse files Browse the repository at this point in the history
Set auto-reload to True in the default configuration so that update of
python and xml files does not need a restart of the server.

auto-reload options requires python-pyinotify to be installed.
  • Loading branch information
aab-odoo committed Mar 3, 2015
1 parent f035a31 commit 4c855a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions 8.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN apt-get update \
curl \
npm \
python-support \
python-pyinotify \
&& npm install -g less less-plugin-clean-css \
&& ln -s /usr/bin/nodejs /usr/bin/node \
&& curl -o wkhtmltox.deb -SL http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb \
Expand Down Expand Up @@ -38,7 +39,7 @@ RUN curl -o odoo.deb -SL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/odo
COPY ./run.sh /
COPY ./openerp-server.conf /etc/odoo/

# Mount /var/lib/odoo to allow restoring filestore
VOLUME ["/var/lib/odoo"]
# Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]

CMD ["/run.sh"]
4 changes: 2 additions & 2 deletions 8.0/openerp-server.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[options]
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons
addons_path = /usr/lib/python2.7/dist-packages/openerp/addons,/mnt/extra-addons
auto_reload = True
db_host = False
db_password = False
db_port = False
db_user = odoo
; admin_passwd = admin
; auto_reload = False
; csv_internal_sep = ,
; data_dir = False
; db_maxconn = 64
Expand Down

0 comments on commit 4c855a5

Please sign in to comment.