9.0/Dockerfile.release: added OPENERP_SERVER environment variable and use ODOO_VERSION to reference to the correct directory.

This commit is contained in:
Pedro Salgado 2016-12-30 14:48:24 -07:00
parent 51d9d8fdda
commit 38324c2ce6

View File

@ -4,6 +4,9 @@ MAINTAINER Pedro Salgado "steenzout@ymail.com"
ENV ODOO_RELEASE ${ODOO_RELEASE} ENV ODOO_RELEASE ${ODOO_RELEASE}
ENV ODOO_SHA1SUM ${ODOO_SHA1SUM} ENV ODOO_SHA1SUM ${ODOO_SHA1SUM}
# Set the default config file
ENV OPENERP_SERVER /etc/odoo/openerp-server.conf
# Install Odoo # Install Odoo
RUN set -x; \ RUN set -x; \
curl -o odoo.deb -SL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/odoo_${ODOO_VERSION}c.${ODOO_RELEASE}_all.deb \ curl -o odoo.deb -SL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/odoo_${ODOO_VERSION}c.${ODOO_RELEASE}_all.deb \
@ -14,8 +17,8 @@ RUN set -x; \
&& rm -rf /var/lib/apt/lists/* odoo.deb && rm -rf /var/lib/apt/lists/* odoo.deb
# Copy entrypoint script and Odoo configuration file # Copy entrypoint script and Odoo configuration file
COPY ./entrypoint.sh / COPY "${ODOO_VERSION}/entrypoint.sh" /
COPY ./openerp-server.conf /etc/odoo/ COPY "${ODOO_VERSION}/openerp-server.conf" /etc/odoo/openerp-server.conf
RUN chown odoo /etc/odoo/openerp-server.conf RUN chown odoo /etc/odoo/openerp-server.conf
# 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