From 9c8326fd0e3e587e2b6babd5cc4eb3c8b579ab28 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 21 May 2018 00:40:39 -0400 Subject: [PATCH] Fix issue with locale during packaging for test documents with unicode names. Add files to allow live testing. Signed-off-by: Roberto Rosario --- docker/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c7d4c4e517..69a0994a87 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -10,7 +10,7 @@ MAINTAINER Roberto Rosario "roberto.rosario@mayan-edms.com" ENV DEBIAN_FRONTEND noninteractive ENV PYTHONUNBUFFERED 1 -ENV LANG C.UTF-8 +ENV LC_ALL C.UTF-8 ENV PROJECT_INSTALL_DIR=/usr/local/lib/python2.7/dist-packages/mayan ARG APT_PROXY @@ -83,6 +83,8 @@ RUN apt-get update && apt-get install make python-dev python-pip -y RUN pip install -r requirements/build.txt +ENV LC_ALL C.UTF-8 + RUN make wheel RUN chmod 777 dist -R @@ -97,6 +99,10 @@ WORKDIR /root/ COPY --from=BUILDER_IMAGE /code/dist/*.whl . +COPY --from=BUILDER_IMAGE /code/contrib/scripts/docker/run-tests.sh . + +COPY --from=BUILDER_IMAGE /code/requirements/testing-base.txt requirements-testing.txt + # Install build Mayan EDMS RUN pip install *.whl && \ rm *.whl