Add missing locales for compatibility

- Ensures the Omnibus GitLab container has all locales present in
  previous versions to support upgrades.

Changelog: fixed
Signed-off-by: Robert Marshall <rmarshall@gitlab.com>
This commit is contained in:
Robert Marshall 2024-03-01 04:43:15 +00:00 committed by Balasankar 'Balu' C
parent dc4a42f90c
commit 76ea027223
2 changed files with 10 additions and 0 deletions

View File

@ -6,16 +6,24 @@ SHELL ["/bin/sh", "-c"]
# Default to supporting utf-8
ENV LANG=C.UTF-8
# Explicitly set supported locales
COPY locale.gen /etc/locale.gen
# Install required packages
RUN apt-get update -q \
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
busybox \
ca-certificates \
locales \
openssh-server \
tzdata \
wget \
perl \
libperl5.34 \
&& locale-gen \
&& cp -a /usr/lib/locale/locale-archive /tmp/locale-archive \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -yq locales \
&& mv /tmp/locale-archive /usr/lib/locale/locale-archive \
&& rm -rf /var/lib/apt/lists/*
# Use BusyBox

2
docker/locale.gen Normal file
View File

@ -0,0 +1,2 @@
C.UTF-8 UTF-8
en_US.UTF-8 UTF-8