Add support for locales and install en_US.UTF-8

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-09-24 16:13:44 +02:00
parent 5deb0daa1f
commit 9d1ab9b44d
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -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