Add locale settings in docker file
Note: The change sets the locale settings to en_US.UTF-8.
These settings are required for bitbake to run with python3.
Change-Id: I0f92269bf1758990ad254240f9698c3c531e5f37
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/build-setup.sh b/build-setup.sh
index 2ba439c..da8cbc3 100755
--- a/build-setup.sh
+++ b/build-setup.sh
@@ -88,6 +88,12 @@
${PROXY}
+# Set the locale
+RUN locale-gen en_US.UTF-8
+ENV LANG en_US.UTF-8
+ENV LANGUAGE en_US:en
+ENV LC_ALL en_US.UTF-8
+
RUN dnf --refresh install -y \
bzip2 \
chrpath \
@@ -132,6 +138,13 @@
${PROXY}
ENV DEBIAN_FRONTEND noninteractive
+
+# Set the locale
+RUN locale-gen en_US.UTF-8
+ENV LANG en_US.UTF-8
+ENV LANGUAGE en_US:en
+ENV LC_ALL en_US.UTF-8
+
RUN apt-get update && apt-get install -yy \
build-essential \
chrpath \