mirror of
https://github.com/luzifer-docker/jenkins.git
synced 2024-12-20 19:31:20 +00:00
Add support for locales and install en_US.UTF-8
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
5deb0daa1f
commit
9d1ab9b44d
1 changed files with 5 additions and 0 deletions
5
build.sh
5
build.sh
|
@ -11,6 +11,7 @@ build_packages=(
|
||||||
install_packages=(
|
install_packages=(
|
||||||
docker-ce
|
docker-ce
|
||||||
jq
|
jq
|
||||||
|
locales
|
||||||
make
|
make
|
||||||
sudo
|
sudo
|
||||||
zip
|
zip
|
||||||
|
@ -29,6 +30,10 @@ apt-get update
|
||||||
# Install packages to stay in the image
|
# Install packages to stay in the image
|
||||||
apt-get install -y --no-install-recommends ${install_packages[@]}
|
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
|
# Allow jenkins to use `sudo` and docker
|
||||||
echo "jenkins ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers.d/jenkins
|
echo "jenkins ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers.d/jenkins
|
||||||
usermod -a -G docker jenkins
|
usermod -a -G docker jenkins
|
||||||
|
|
Loading…
Reference in a new issue