mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-08 17:42:56 +01:00
Make locale setting OS-dependent
Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
This commit is contained in:
parent
475f5af390
commit
a19885da57
2 changed files with 11 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ ARG HELM_DOWNLOAD_SHA256
|
|||
|
||||
RUN if [ -n "$HELM_VERSION" ] ; then /scripts/install-helm $HELM_VERSION $HELM_DOWNLOAD_SHA256; fi
|
||||
|
||||
RUN locale-gen C.UTF-8
|
||||
RUN /scripts/generate-locale
|
||||
ENV LANG=C.UTF-8 \
|
||||
LANGUAGE=C \
|
||||
LC_ALL=C.UTF-8
|
||||
|
|
|
|||
10
scripts/generate-locale
Executable file
10
scripts/generate-locale
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -xeou pipefail
|
||||
|
||||
BUILD_OS=${BUILD_OS:-debian}
|
||||
|
||||
# For UBI, the locale is already present in the image.
|
||||
if [[ $BUILD_OS =~ debian ]]; then
|
||||
locale-gen C.UTF-8
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue