Skip to content

Commit 1c7d770

Browse files
authored
Add Latin-1 locale to Ubuntu images (#2078)
1 parent 7bca195 commit 1c7d770

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

buildkite/docker/ubuntu2004/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ RUN apt-get -y update && \
3131
llvm \
3232
llvm-dev \
3333
lsb-release \
34+
locales \
3435
netcat-openbsd \
3536
python-is-python3 \
3637
python2 \
@@ -66,6 +67,9 @@ WORKDIR /
6667
# Allow using sudo inside the container.
6768
RUN echo "ALL ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
6869

70+
# Ensure that Bazel can use its beloved ISO-8859-1 locale.
71+
RUN localedef -i en_US -f ISO-8859-1 en_US.ISO-8859-1
72+
6973
FROM ubuntu2004-bazel-nojdk AS ubuntu2004-nojdk
7074

7175
### Install Google Cloud SDK.

buildkite/docker/ubuntu2204/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ RUN apt-get -y update && \
3131
llvm \
3232
llvm-dev \
3333
lsb-release \
34+
locales \
3435
netcat-openbsd \
3536
openssh-client \
3637
python-is-python3 \
@@ -58,6 +59,9 @@ RUN apt-get -y update && \
5859
# Allow using sudo inside the container.
5960
RUN echo "ALL ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
6061

62+
# Ensure that Bazel can use its beloved ISO-8859-1 locale.
63+
RUN localedef -i en_US -f ISO-8859-1 en_US.ISO-8859-1
64+
6165
FROM ubuntu2204-bazel-nojdk AS ubuntu2204-nojdk
6266

6367
### Install Google Cloud SDK.

buildkite/docker/ubuntu2404/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ RUN apt-get -y update && \
3030
llvm \
3131
llvm-dev \
3232
lsb-release \
33+
locales \
3334
netcat-openbsd \
3435
openssh-client \
3536
python-is-python3 \
@@ -55,6 +56,9 @@ RUN apt-get -y update && \
5556
# Allow using sudo inside the container.
5657
RUN echo "ALL ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
5758

59+
# Ensure that Bazel can use its beloved ISO-8859-1 locale.
60+
RUN localedef -i en_US -f ISO-8859-1 en_US.ISO-8859-1
61+
5862
FROM ubuntu2404-bazel-nojdk AS ubuntu2404-nojdk
5963

6064
### Install Google Cloud SDK.

0 commit comments

Comments
 (0)