Change to ENTRYPOINT + CMD
The addition of `set -e` in the run.sh script exposed the fact that it was erroring out when `$# -eq 0`.
This commit is contained in:
parent
af052bedd7
commit
45bfe40dcb
@ -27,8 +27,8 @@ RUN curl -o odoo.deb -SL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/odo
|
||||
&& apt-get -y install -f --no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/* odoo.deb
|
||||
|
||||
# Copy run script and Odoo configuration file
|
||||
COPY ./run.sh /
|
||||
# Copy entrypoint script and Odoo configuration file
|
||||
COPY ./entrypoint.sh /
|
||||
COPY ./openerp-server.conf /etc/odoo/
|
||||
RUN chown odoo /etc/odoo/openerp-server.conf
|
||||
|
||||
@ -41,4 +41,5 @@ EXPOSE 8069 8071
|
||||
# Set default user when running the container
|
||||
USER odoo
|
||||
|
||||
ENTRYPOINT ["/run.sh"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["/usr/bin/openerp-server", "--config=/etc/odoo/openerp-server.conf"]
|
||||
|
@ -9,7 +9,4 @@ set -e
|
||||
: ${PGPASSWORD:=$DB_ENV_POSTGRES_PASSWORD}
|
||||
export PGHOST PGPORT PGUSER PGPASSWORD
|
||||
|
||||
[ "$1" != "--" ] && exec "$@"
|
||||
|
||||
shift
|
||||
exec /usr/bin/openerp-server --config=/etc/odoo/openerp-server.conf "$@"
|
||||
exec "$@"
|
Loading…
Reference in New Issue
Block a user