From 0df2419d044d5159bcecdf4eca2ea724b82612b2 Mon Sep 17 00:00:00 2001 From: Daniel Blanco Date: Tue, 17 Oct 2017 09:23:41 -0300 Subject: [PATCH 1/3] added locale to prevent ascii decode errors --- 11.0/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/11.0/Dockerfile b/11.0/Dockerfile index 226d74f..f894780 100644 --- a/11.0/Dockerfile +++ b/11.0/Dockerfile @@ -1,6 +1,16 @@ FROM debian:stretch MAINTAINER Odoo S.A. +# Generate locale C.UTF-8 for postgres and general locale data +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update -qq && apt-get install -y locales -qq +RUN echo 'es_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen +RUN echo 'C.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen +RUN dpkg-reconfigure locales && /usr/sbin/update-locale LANG=C.UTF-8 +ENV LANG C.UTF-8 +ENV LANGUAGE C.UTF-8 +ENV LC_ALL C.UTF-8 + # Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf RUN set -x; \ apt-get update \ From 6b98eb4cb9df8e35bae5a1f558508d0e1a9572ac Mon Sep 17 00:00:00 2001 From: Daniel Blanco Date: Tue, 17 Oct 2017 09:46:06 -0300 Subject: [PATCH 2/3] Added num2words installation --- .gitignore | 3 ++- 11.0/Dockerfile | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 485dee6..f32e31a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.idea +.idea/ +.DS_Store diff --git a/11.0/Dockerfile b/11.0/Dockerfile index f894780..1c4e5d7 100644 --- a/11.0/Dockerfile +++ b/11.0/Dockerfile @@ -42,6 +42,7 @@ RUN set -x; \ && rm -rf /var/lib/apt/lists/* odoo.deb # Copy entrypoint script and Odoo configuration file +RUN pip install num2words COPY ./entrypoint.sh / COPY ./odoo.conf /etc/odoo/ RUN chown odoo /etc/odoo/odoo.conf From 316224ccefd011be671586159bf30946dc69b87b Mon Sep 17 00:00:00 2001 From: Daniel Blanco Date: Tue, 17 Oct 2017 09:54:09 -0300 Subject: [PATCH 3/3] [FIX] pip3 install num2words --- 11.0/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/11.0/Dockerfile b/11.0/Dockerfile index 1c4e5d7..8665757 100644 --- a/11.0/Dockerfile +++ b/11.0/Dockerfile @@ -42,7 +42,7 @@ RUN set -x; \ && rm -rf /var/lib/apt/lists/* odoo.deb # Copy entrypoint script and Odoo configuration file -RUN pip install num2words +RUN pip3 install num2words COPY ./entrypoint.sh / COPY ./odoo.conf /etc/odoo/ RUN chown odoo /etc/odoo/odoo.conf