[IMP] Set OPENERP_SERVER to specify config file

This commit is contained in:
Mike Dillon 2015-03-10 21:36:50 -07:00 committed by Samus CTO
parent 6a6ceb5b10
commit 13fd5a1128
2 changed files with 4 additions and 1 deletions

View File

@ -38,6 +38,9 @@ VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
# Expose Odoo services
EXPOSE 8069 8071
# Set the default config file
ENV OPENERP_SERVER /etc/odoo/openerp-server.conf
# Set default user when running the container
USER odoo

View File

@ -12,4 +12,4 @@ export PGHOST PGPORT PGUSER PGPASSWORD
[ "$1" != "--" ] && exec "$@"
shift
exec /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf "$@"
exec /usr/bin/openerp-server "$@"