You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2021/05/21 16:33:54 UTC

[hadoop] branch branch-3.3 updated: HADOOP-17718. Explicitly set locale in the Dockerfile. (#3034)

This is an automated email from the ASF dual-hosted git repository.

weichiu pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new 5e09d38  HADOOP-17718. Explicitly set locale in the Dockerfile. (#3034)
5e09d38 is described below

commit 5e09d38b2505db70c712b8b6c93635220325156f
Author: Wei-Chiu Chuang <we...@apache.org>
AuthorDate: Fri May 21 09:26:50 2021 -0700

    HADOOP-17718. Explicitly set locale in the Dockerfile. (#3034)
    
    Reviewed-by: Akira Ajisaka <aa...@apache.org>
    (cherry picked from commit ad923ad5642b2b11357fbee4277f3435300a19c5)
    
    Conflicts:
    	dev-support/docker/Dockerfile_centos_7
    	dev-support/docker/Dockerfile_centos_8
---
 dev-support/docker/Dockerfile         | 4 ++++
 dev-support/docker/Dockerfile_aarch64 | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile
index 1d5062f..c746a95 100644
--- a/dev-support/docker/Dockerfile
+++ b/dev-support/docker/Dockerfile
@@ -85,6 +85,10 @@ RUN apt-get -q update \
     && apt-get clean \
     && 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
 ######
diff --git a/dev-support/docker/Dockerfile_aarch64 b/dev-support/docker/Dockerfile_aarch64
index 62540fb..f8f3cd3 100644
--- a/dev-support/docker/Dockerfile_aarch64
+++ b/dev-support/docker/Dockerfile_aarch64
@@ -85,6 +85,10 @@ RUN apt-get -q update \
     && apt-get clean \
     && 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
 ######

---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org