From 17bcfecbc7d782137d07cf0337bc887cd5ea6c1f Mon Sep 17 00:00:00 2001 From: Pedro Salgado Date: Fri, 30 Dec 2016 14:51:37 -0700 Subject: [PATCH] 9.0/20160101: added build for Odoo 9.0 20160101 container image. --- 9.0/20160101/Dockerfile | 29 +++++++++++++++++++++++++++++ 9.0/20160101/vars.env | 3 +++ 2 files changed, 32 insertions(+) create mode 100644 9.0/20160101/Dockerfile create mode 100644 9.0/20160101/vars.env diff --git a/9.0/20160101/Dockerfile b/9.0/20160101/Dockerfile new file mode 100644 index 0000000..30b70b6 --- /dev/null +++ b/9.0/20160101/Dockerfile @@ -0,0 +1,29 @@ +FROM steenzout/odoo:9.0-base +MAINTAINER Pedro Salgado "steenzout@ymail.com" + +ENV ODOO_RELEASE 20160101 +ENV ODOO_SHA1SUM d55a3f5317529defe8cf8a8eec82ae6159a0fe81 + +# Set the default config file +ENV OPENERP_SERVER /etc/odoo/openerp-server.conf + +# Install Odoo +RUN set -x; curl -o odoo.deb -SL http://nightly.odoo.com/9.0/nightly/deb/odoo_9.0c.20160101_all.deb && echo "d55a3f5317529defe8cf8a8eec82ae6159a0fe81 odoo.deb" | sha1sum -c - && dpkg --force-depends -i odoo.deb && apt-get update && apt-get -y install -f --no-install-recommends && rm -rf /var/lib/apt/lists/* odoo.deb + +# Copy entrypoint script and Odoo configuration file +COPY "9.0/entrypoint.sh" / +COPY "9.0/openerp-server.conf" /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 +RUN mkdir -p /mnt/extra-addons && chown -R odoo /mnt/extra-addons +VOLUME ["/var/lib/odoo", "/mnt/extra-addons"] + +# Expose Odoo services +EXPOSE 8069 8071 + +# Set default user when running the container +USER odoo + +ENTRYPOINT ["/entrypoint.sh"] +CMD ["openerp-server"] diff --git a/9.0/20160101/vars.env b/9.0/20160101/vars.env new file mode 100644 index 0000000..a5fc14b --- /dev/null +++ b/9.0/20160101/vars.env @@ -0,0 +1,3 @@ +ODOO_RELEASE=20160101 +ODOO_SHA1SUM=d55a3f5317529defe8cf8a8eec82ae6159a0fe81 +ODOO_VERSION=9.0