Set CI image locale to en_US.UTF-8

Closes gh-37673
pull/37640/head
Phillip Webb 1 year ago
parent 1f5472387d
commit c6096e21a1

@ -6,6 +6,9 @@ ADD get-docker-url.sh /get-docker-url.sh
ADD get-docker-compose-url.sh /get-docker-compose-url.sh ADD get-docker-compose-url.sh /get-docker-compose-url.sh
RUN ./setup.sh java17 java21 RUN ./setup.sh java17 java21
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV JAVA_HOME /opt/openjdk ENV JAVA_HOME /opt/openjdk
ENV PATH $JAVA_HOME/bin:$PATH ENV PATH $JAVA_HOME/bin:$PATH
ADD docker-lib.sh /docker-lib.sh ADD docker-lib.sh /docker-lib.sh

@ -6,6 +6,9 @@ ADD get-docker-url.sh /get-docker-url.sh
ADD get-docker-compose-url.sh /get-docker-compose-url.sh ADD get-docker-compose-url.sh /get-docker-compose-url.sh
RUN ./setup.sh java17 RUN ./setup.sh java17
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV JAVA_HOME /opt/openjdk ENV JAVA_HOME /opt/openjdk
ENV PATH $JAVA_HOME/bin:$PATH ENV PATH $JAVA_HOME/bin:$PATH
ADD docker-lib.sh /docker-lib.sh ADD docker-lib.sh /docker-lib.sh

@ -2,12 +2,13 @@
set -ex set -ex
########################################################### ###########################################################
# UTILS # OS and UTILS
########################################################### ###########################################################
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
apt-get update apt-get update
apt-get install --no-install-recommends -y tzdata ca-certificates net-tools libxml2-utils git curl libudev1 libxml2-utils iptables iproute2 jq apt-get install --no-install-recommends -y locales tzdata ca-certificates net-tools libxml2-utils git curl libudev1 libxml2-utils iptables iproute2 jq
locale-gen en_US.utf8
ln -fs /usr/share/zoneinfo/UTC /etc/localtime ln -fs /usr/share/zoneinfo/UTC /etc/localtime
dpkg-reconfigure --frontend noninteractive tzdata dpkg-reconfigure --frontend noninteractive tzdata
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*

Loading…
Cancel
Save