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:
parent
dc4a42f90c
commit
76ea027223
|
@ -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
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
C.UTF-8 UTF-8
|
||||
en_US.UTF-8 UTF-8
|
Loading…
Reference in New Issue