From 5cfcee3e87253be0630edbf653d537674c2b19a5 Mon Sep 17 00:00:00 2001 From: barrierye Date: Wed, 3 Jun 2020 21:30:49 +0800 Subject: [PATCH] update dockfile to support chinese encode in lac example --- tools/Dockerfile | 4 +++- tools/Dockerfile.centos6.devel | 4 +++- tools/Dockerfile.centos6.gpu.devel | 3 ++- tools/Dockerfile.devel | 4 +++- tools/Dockerfile.gpu | 1 + tools/Dockerfile.gpu.devel | 3 ++- 6 files changed, 14 insertions(+), 5 deletions(-) diff --git a/tools/Dockerfile b/tools/Dockerfile index dc39adf0..3c701725 100644 --- a/tools/Dockerfile +++ b/tools/Dockerfile @@ -9,4 +9,6 @@ RUN yum -y install wget && \ yum -y install python3 python3-devel && \ yum clean all && \ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ - python get-pip.py && rm 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 diff --git a/tools/Dockerfile.centos6.devel b/tools/Dockerfile.centos6.devel index 5223693d..83981dcc 100644 --- a/tools/Dockerfile.centos6.devel +++ b/tools/Dockerfile.centos6.devel @@ -44,4 +44,6 @@ RUN yum -y install wget && \ cd .. && rm -rf Python-3.6.8* && \ 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 + yum clean all && \ + localedef -c -i en_US -f UTF-8 en_US.UTF-8 && \ + echo "export LANG=en_US.utf8" >> /root/.bashrc diff --git a/tools/Dockerfile.centos6.gpu.devel b/tools/Dockerfile.centos6.gpu.devel index 1432d49a..9ee3591b 100644 --- a/tools/Dockerfile.centos6.gpu.devel +++ b/tools/Dockerfile.centos6.gpu.devel @@ -44,4 +44,5 @@ RUN yum -y install wget && \ cd .. && rm -rf Python-3.6.8* && \ 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 + yum clean all && \ + echo "export LANG=en_US.utf8" >> /root/.bashrc diff --git a/tools/Dockerfile.devel b/tools/Dockerfile.devel index 385e5682..e4bcd335 100644 --- a/tools/Dockerfile.devel +++ b/tools/Dockerfile.devel @@ -21,4 +21,6 @@ RUN yum -y install wget >/dev/null \ && yum install -y python3 python3-devel \ && pip3 install google protobuf setuptools wheel flask \ && yum -y install epel-release && yum -y install patchelf libXext libSM libXrender\ - && yum clean all + && yum clean all \ + && localedef -c -i en_US -f UTF-8 en_US.UTF-8 \ + && echo "export LANG=en_US.utf8" >> /root/.bashrc diff --git a/tools/Dockerfile.gpu b/tools/Dockerfile.gpu index bf05080c..2f38a3a3 100644 --- a/tools/Dockerfile.gpu +++ b/tools/Dockerfile.gpu @@ -15,6 +15,7 @@ RUN yum -y install wget && \ echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH' >> /root/.bashrc && \ 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 && \ mkdir -p /usr/local/cuda/extras COPY --from=builder /usr/local/cuda/extras/CUPTI /usr/local/cuda/extras/CUPTI diff --git a/tools/Dockerfile.gpu.devel b/tools/Dockerfile.gpu.devel index 2ffbe460..057201ce 100644 --- a/tools/Dockerfile.gpu.devel +++ b/tools/Dockerfile.gpu.devel @@ -22,4 +22,5 @@ RUN yum -y install wget >/dev/null \ && yum install -y python3 python3-devel \ && pip3 install google protobuf setuptools wheel flask \ && yum -y install epel-release && yum -y install patchelf libXext libSM libXrender\ - && yum clean all + && yum clean all \ + && echo "export LANG=en_US.utf8" >> /root/.bashrc -- GitLab