[IMP] use ENTRYPOINT instead of cmd and permit giving command arguments

This commit is contained in:
Samus CTO 2015-02-27 14:41:23 +01:00 committed by Aaron Bohy
parent 79b731f71d
commit f000eeed23
2 changed files with 5 additions and 3 deletions

View File

@ -42,4 +42,4 @@ COPY ./openerp-server.conf /etc/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"]
ENTRYPOINT ["/run.sh"]

View File

@ -6,5 +6,7 @@ export PGPORT=$DB_PORT_5432_TCP_PORT
export PGUSER=$DB_ENV_POSTGRES_USER
export PGPASSWORD=$DB_ENV_POSTGRES_PASSWORD
# start Odoo
exec gosu odoo /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf
[ "$1" != "--" ] && exec "$@"
shift
exec gosu odoo /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf "$@"