From 9d1ab9b44d9eb953d229181b475d8bc2348d6690 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 24 Sep 2021 16:13:44 +0200 Subject: [PATCH] Add support for locales and install en_US.UTF-8 Signed-off-by: Knut Ahlers --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sh b/build.sh index 45c0e55..4225fe1 100755 --- a/build.sh +++ b/build.sh @@ -11,6 +11,7 @@ build_packages=( install_packages=( docker-ce jq + locales make sudo zip @@ -29,6 +30,10 @@ apt-get update # Install packages to stay in the image apt-get install -y --no-install-recommends ${install_packages[@]} +# Install en_US locale +sed -Ei 's/# (en_US.UTF-8.*)/\1/' /etc/locale.gen +locale-gen + # Allow jenkins to use `sudo` and docker echo "jenkins ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers.d/jenkins usermod -a -G docker jenkins