HADOOP-17718. Explicitly set locale in the Dockerfile. (#3034)

Reviewed-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
Wei-Chiu Chuang 2021-05-21 09:26:50 -07:00 committed by GitHub
parent d146ab3af7
commit ad923ad564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

View File

@ -85,6 +85,10 @@ RUN apt-get -q update \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV PYTHONIOENCODING=utf-8
###### ######
# Set env vars required to build Hadoop # Set env vars required to build Hadoop
###### ######

View File

@ -89,6 +89,10 @@ RUN apt-get -q update \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV PYTHONIOENCODING=utf-8
###### ######
# Set env vars required to build Hadoop # Set env vars required to build Hadoop
###### ######

View File

@ -93,6 +93,10 @@ RUN mkdir -p /opt/zstd /tmp/zstd \
&& make install \ && make install \
&& cd /root || exit && cd /root || exit
RUN locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV PYTHONIOENCODING=utf-8
###### ######
# Set env vars required to build Hadoop # Set env vars required to build Hadoop
###### ######

View File

@ -110,6 +110,10 @@ RUN mkdir -p /opt/zstd /tmp/zstd \
&& make install \ && make install \
&& cd /root || exit && cd /root || exit
RUN locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
ENV PYTHONIOENCODING=utf-8
###### ######
# Set env vars required to build Hadoop # Set env vars required to build Hadoop
###### ######