From 204d8ff39a9edbec0b381ddd1e4098b67978b16a Mon Sep 17 00:00:00 2001 From: MRXLT Date: Thu, 13 Aug 2020 10:15:00 +0800 Subject: [PATCH] add env LANGUAGE for uwsgi --- tools/Dockerfile | 3 ++- tools/Dockerfile.centos6.cuda9.0-cudnn7.devel | 3 ++- tools/Dockerfile.centos6.devel | 3 ++- tools/Dockerfile.cuda10.0-cudnn7 | 1 + tools/Dockerfile.cuda10.0-cudnn7.devel | 3 ++- tools/Dockerfile.cuda9.0-cudnn7 | 1 + tools/Dockerfile.cuda9.0-cudnn7.devel | 3 ++- tools/Dockerfile.devel | 3 ++- 8 files changed, 14 insertions(+), 6 deletions(-) diff --git a/tools/Dockerfile b/tools/Dockerfile index 6c619377..bf425449 100644 --- a/tools/Dockerfile +++ b/tools/Dockerfile @@ -12,4 +12,5 @@ RUN yum -y install wget && \ RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ python get-pip.py && rm get-pip.py && \ localedef -c -i en_US -f UTF-8 en_US.UTF-8 && \ - echo "export LANG=en_US.utf8" >> /root/.bashrc + echo "export LANG=en_US.utf8" >> /root/.bashrc && \ + echo "export LANGUAGE=en_US.utf8" >> /root/.bashrc diff --git a/tools/Dockerfile.centos6.cuda9.0-cudnn7.devel b/tools/Dockerfile.centos6.cuda9.0-cudnn7.devel index 9ee3591b..24a5d189 100644 --- a/tools/Dockerfile.centos6.cuda9.0-cudnn7.devel +++ b/tools/Dockerfile.centos6.cuda9.0-cudnn7.devel @@ -45,4 +45,5 @@ RUN yum -y install wget && \ pip3 install google protobuf setuptools wheel flask numpy==1.16.4 && \ yum -y install epel-release && yum -y install patchelf libXext libSM libXrender && \ yum clean all && \ - echo "export LANG=en_US.utf8" >> /root/.bashrc + echo "export LANG=en_US.utf8" >> /root/.bashrc && \ + echo "export LANGUAGE=en_US.utf8" >> /root/.bashrc diff --git a/tools/Dockerfile.centos6.devel b/tools/Dockerfile.centos6.devel index 83981dcc..53d46d9d 100644 --- a/tools/Dockerfile.centos6.devel +++ b/tools/Dockerfile.centos6.devel @@ -46,4 +46,5 @@ RUN yum -y install wget && \ yum -y install epel-release && yum -y install patchelf libXext libSM libXrender && \ yum clean all && \ localedef -c -i en_US -f UTF-8 en_US.UTF-8 && \ - echo "export LANG=en_US.utf8" >> /root/.bashrc + echo "export LANG=en_US.utf8" >> /root/.bashrc && \ + echo "export LANGUAGE=en_US.utf8" >> /root/.bashrc diff --git a/tools/Dockerfile.cuda10.0-cudnn7 b/tools/Dockerfile.cuda10.0-cudnn7 index d2a5b2c9..c26eaeb9 100644 --- a/tools/Dockerfile.cuda10.0-cudnn7 +++ b/tools/Dockerfile.cuda10.0-cudnn7 @@ -18,6 +18,7 @@ RUN ln -s /usr/local/cuda-10.0/lib64/libcublas.so.10.0 /usr/local/cuda-10.0/lib6 ln -s /usr/local/cuda-10.0/targets/x86_64-linux/lib/libcudnn.so.7 /usr/local/cuda-10.0/targets/x86_64-linux/lib/libcudnn.so && \ echo 'export LD_LIBRARY_PATH=/usr/local/cuda-10.0/targets/x86_64-linux/lib:$LD_LIBRARY_PATH' >> /root/.bashrc && \ echo "export LANG=en_US.utf8" >> /root/.bashrc && \ + echo "export LANGUAGE=en_US.utf8" >> /root/.bashrc && \ mkdir -p /usr/local/cuda/extras COPY --from=builder /usr/local/cuda/extras/CUPTI /usr/local/cuda/extras/CUPTI diff --git a/tools/Dockerfile.cuda10.0-cudnn7.devel b/tools/Dockerfile.cuda10.0-cudnn7.devel index b46f9b96..01541299 100644 --- a/tools/Dockerfile.cuda10.0-cudnn7.devel +++ b/tools/Dockerfile.cuda10.0-cudnn7.devel @@ -32,4 +32,5 @@ RUN yum install -y python3 python3-devel \ && yum clean all RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8 \ - && echo "export LANG=en_US.utf8" >> /root/.bashrc + && echo "export LANG=en_US.utf8" >> /root/.bashrc \ + && echo "export LANGUAGE=en_US.utf8" >> /root/.bashrc diff --git a/tools/Dockerfile.cuda9.0-cudnn7 b/tools/Dockerfile.cuda9.0-cudnn7 index 145cd53e..ead1cfe7 100644 --- a/tools/Dockerfile.cuda9.0-cudnn7 +++ b/tools/Dockerfile.cuda9.0-cudnn7 @@ -18,6 +18,7 @@ RUN ln -s /usr/local/cuda-9.0/lib64/libcublas.so.9.0 /usr/local/cuda-9.0/lib64/l ln -s /usr/local/cuda-9.0/targets/x86_64-linux/lib/libcudnn.so.7 /usr/local/cuda-9.0/targets/x86_64-linux/lib/libcudnn.so && \ echo 'export LD_LIBRARY_PATH=/usr/local/cuda-9.0/targets/x86_64-linux/lib:$LD_LIBRARY_PATH' >> /root/.bashrc && \ echo "export LANG=en_US.utf8" >> /root/.bashrc && \ + echo "export LANGUAGE=en_US.utf8" >> /root/.bashrc && \ mkdir -p /usr/local/cuda/extras COPY --from=builder /usr/local/cuda/extras/CUPTI /usr/local/cuda/extras/CUPTI diff --git a/tools/Dockerfile.cuda9.0-cudnn7.devel b/tools/Dockerfile.cuda9.0-cudnn7.devel index c101b321..4ca886a2 100644 --- a/tools/Dockerfile.cuda9.0-cudnn7.devel +++ b/tools/Dockerfile.cuda9.0-cudnn7.devel @@ -31,4 +31,5 @@ RUN yum install -y python3 python3-devel \ && yum clean all RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8 \ - && echo "export LANG=en_US.utf8" >> /root/.bashrc + && echo "export LANG=en_US.utf8" >> /root/.bashrc \ + && echo "export LANGUAGE=en_US.utf8" >> /root/.bashrc diff --git a/tools/Dockerfile.devel b/tools/Dockerfile.devel index dc00384e..a0ef073e 100644 --- a/tools/Dockerfile.devel +++ b/tools/Dockerfile.devel @@ -28,4 +28,5 @@ RUN yum install -y python3 python3-devel \ && yum clean all RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8 \ - && echo "export LANG=en_US.utf8" >> /root/.bashrc + && echo "export LANG=en_US.utf8" >> /root/.bashrc \ + && echo "export LANGUAGE=en_US.utf8" >> /root/.bashrc -- GitLab