[IMP] use ENTRYPOINT instead of cmd and permit giving command arguments
This commit is contained in:
parent
79b731f71d
commit
f000eeed23
@ -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
|
# Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
|
||||||
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
|
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
|
||||||
|
|
||||||
CMD ["/run.sh"]
|
ENTRYPOINT ["/run.sh"]
|
||||||
|
@ -6,5 +6,7 @@ export PGPORT=$DB_PORT_5432_TCP_PORT
|
|||||||
export PGUSER=$DB_ENV_POSTGRES_USER
|
export PGUSER=$DB_ENV_POSTGRES_USER
|
||||||
export PGPASSWORD=$DB_ENV_POSTGRES_PASSWORD
|
export PGPASSWORD=$DB_ENV_POSTGRES_PASSWORD
|
||||||
|
|
||||||
# start Odoo
|
[ "$1" != "--" ] && exec "$@"
|
||||||
exec gosu odoo /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf
|
|
||||||
|
shift
|
||||||
|
exec gosu odoo /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user