From 63134dc9e1243128c71221cb24902828278a2f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Mon, 30 Jul 2018 14:38:17 +0200 Subject: [PATCH] Ensure the UTF-8 locales are set To avoid possible "invalid byte sequence in US-ASCII" Ruby errors. --- Dockerfile.latest | 3 +++ Dockerfile.sle12-sp3 | 3 +++ Dockerfile.sle12-sp4 | 3 +++ Dockerfile.sle15 | 3 +++ 4 files changed, 12 insertions(+) diff --git a/Dockerfile.latest b/Dockerfile.latest index 46fadd1..61286d8 100644 --- a/Dockerfile.latest +++ b/Dockerfile.latest @@ -1,6 +1,9 @@ # Build the latest openSUSE Tumbleweed image FROM opensuse/tumbleweed +# ensure the UTF-8 locales are set +ENV LC_ALL=en_US.UTF-8 + # do not install the files marked as documentation (use "rpm --excludedocs") RUN sed -i -e "s/^.*rpm.install.excludedocs.*/rpm.install.excludedocs = yes/" /etc/zypp/zypp.conf diff --git a/Dockerfile.sle12-sp3 b/Dockerfile.sle12-sp3 index 9633341..8c1a45f 100644 --- a/Dockerfile.sle12-sp3 +++ b/Dockerfile.sle12-sp3 @@ -4,6 +4,9 @@ # for running the libyui builds. FROM opensuse:42.3 +# ensure the UTF-8 locales are set +ENV LC_ALL=en_US.UTF-8 + # do not install the files marked as documentation (use "rpm --excludedocs") RUN sed -i -e "s/^.*rpm.install.excludedocs.*/rpm.install.excludedocs = yes/" /etc/zypp/zypp.conf diff --git a/Dockerfile.sle12-sp4 b/Dockerfile.sle12-sp4 index 4454f0f..984804a 100644 --- a/Dockerfile.sle12-sp4 +++ b/Dockerfile.sle12-sp4 @@ -5,6 +5,9 @@ # for running the libyui builds. FROM opensuse:42.3 +# ensure the UTF-8 locales are set +ENV LC_ALL=en_US.UTF-8 + # do not install the files marked as documentation (use "rpm --excludedocs") RUN sed -i -e "s/^.*rpm.install.excludedocs.*/rpm.install.excludedocs = yes/" /etc/zypp/zypp.conf diff --git a/Dockerfile.sle15 b/Dockerfile.sle15 index 1f978a2..b921d60 100644 --- a/Dockerfile.sle15 +++ b/Dockerfile.sle15 @@ -1,6 +1,9 @@ # Build the latest openSUSE Tumbleweed image FROM opensuse/leap:15.0 +# ensure the UTF-8 locales are set +ENV LC_ALL=en_US.UTF-8 + # do not install the files marked as documentation (use "rpm --excludedocs") RUN sed -i -e "s/^.*rpm.install.excludedocs.*/rpm.install.excludedocs = yes/" /etc/zypp/zypp.conf