From 6b2d75fc44478f0abc1867faf9d6edadec106967 Mon Sep 17 00:00:00 2001 From: Jan Provaznik Date: Tue, 16 Nov 2021 08:19:23 +0100 Subject: [PATCH] Use C.UTF-8 We use C.UTF-8 on production, this change unifies usage of C.UTF-8 in all images. Changelog: changed --- Dockerfile.custom | 4 ++-- Dockerfile.omnibus-gitlab-bionic | 6 +++--- Dockerfile.omnibus-gitlab-buster | 6 +++--- Dockerfile.omnibus-gitlab-centos7 | 6 +++--- Dockerfile.omnibus-gitlab-centos8 | 6 +++--- Dockerfile.omnibus-gitlab-focal | 6 +++--- Dockerfile.omnibus-gitlab-jessie | 6 +++--- Dockerfile.omnibus-gitlab-opensuse15.1 | 6 +++--- Dockerfile.omnibus-gitlab-stretch | 6 +++--- Dockerfile.omnibus-gitlab-wheezy | 6 +++--- Dockerfile.omnibus-gitlab-xenial | 6 +++--- Dockerfile.release-tools | 4 ++-- Dockerfile.www-gitlab-com-3.0 | 4 ++-- scripts/install-essentials | 4 ++-- scripts/install-www-gitlab-com | 4 ++-- 15 files changed, 40 insertions(+), 40 deletions(-) diff --git a/Dockerfile.custom b/Dockerfile.custom index ccbb140..1feec35 100644 --- a/Dockerfile.custom +++ b/Dockerfile.custom @@ -82,9 +82,9 @@ ARG BAZELISK_DOWNLOAD_SHA256 RUN if [ -n "$BAZELISK_VERSION" ] ; then /scripts/install-bazelisk $BAZELISK_VERSION $BAZELISK_DOWNLOAD_SHA256; fi RUN locale-gen en_US.UTF-8 -ENV LANG=en_US.UTF-8 \ +ENV LANG=C.UTF-8 \ LANGUAGE=en_US:en \ - LC_ALL=en_US.UTF-8 + LC_ALL=C.UTF-8 # Set as env variables all versions configured ENV RUBY_VERSION=${RUBY_VERSION} \ diff --git a/Dockerfile.omnibus-gitlab-bionic b/Dockerfile.omnibus-gitlab-bionic index 45d9b09..ed980e0 100644 --- a/Dockerfile.omnibus-gitlab-bionic +++ b/Dockerfile.omnibus-gitlab-bionic @@ -6,11 +6,11 @@ RUN apt-get update -q \ && apt-get clean -yqq \ && rm -rf /var/lib/apt/lists/* -RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen +RUN echo "C.UTF-8 UTF-8" > /etc/locale.gen RUN locale-gen en_US.UTF-8 -ENV LANG en_US.UTF-8 +ENV LANG C.UTF-8 ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 +ENV LC_ALL C.UTF-8 ENV RUBY_VERSION 2.6.5 RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-${RUBY_VERSION}.tar.gz" \ diff --git a/Dockerfile.omnibus-gitlab-buster b/Dockerfile.omnibus-gitlab-buster index 43c25ab..669824d 100644 --- a/Dockerfile.omnibus-gitlab-buster +++ b/Dockerfile.omnibus-gitlab-buster @@ -6,11 +6,11 @@ RUN apt-get update -q \ && apt-get clean -yqq \ && rm -rf /var/lib/apt/lists/* -RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen +RUN echo "C.UTF-8 UTF-8" > /etc/locale.gen RUN locale-gen en_US.UTF-8 -ENV LANG en_US.UTF-8 +ENV LANG C.UTF-8 ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 +ENV LC_ALL C.UTF-8 ENV RUBY_VERSION 2.6.5 diff --git a/Dockerfile.omnibus-gitlab-centos7 b/Dockerfile.omnibus-gitlab-centos7 index 4f107b4..298f1f6 100644 --- a/Dockerfile.omnibus-gitlab-centos7 +++ b/Dockerfile.omnibus-gitlab-centos7 @@ -6,9 +6,9 @@ RUN yum update -y -q \ gcc gcc-c++ git make curl zlib-devel openssl-devel \ && yum clean all -ENV LANG en_US.UTF-8 -ENV LC_ALL en_US.UTF-8 -RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8 +ENV LANG C.UTF-8 +ENV LC_ALL C.UTF-8 +RUN localedef -c -f UTF-8 -i en_US C.UTF-8 ENV RUBY_VERSION 2.6.5 RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-${RUBY_VERSION}.tar.gz" \ diff --git a/Dockerfile.omnibus-gitlab-centos8 b/Dockerfile.omnibus-gitlab-centos8 index ce98572..7b4fad6 100644 --- a/Dockerfile.omnibus-gitlab-centos8 +++ b/Dockerfile.omnibus-gitlab-centos8 @@ -6,9 +6,9 @@ RUN yum update -y -q \ gcc gcc-c++ git make curl zlib-devel openssl-devel glibc-locale-source \ && yum clean all -ENV LANG en_US.UTF-8 -ENV LC_ALL en_US.UTF-8 -RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8 +ENV LANG C.UTF-8 +ENV LC_ALL C.UTF-8 +RUN localedef -c -f UTF-8 -i en_US C.UTF-8 ENV RUBY_VERSION 2.6.5 RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-${RUBY_VERSION}.tar.gz" \ diff --git a/Dockerfile.omnibus-gitlab-focal b/Dockerfile.omnibus-gitlab-focal index 81aee26..2b48184 100644 --- a/Dockerfile.omnibus-gitlab-focal +++ b/Dockerfile.omnibus-gitlab-focal @@ -6,11 +6,11 @@ RUN apt-get update -q \ && apt-get clean -yqq \ && rm -rf /var/lib/apt/lists/* -RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen +RUN echo "C.UTF-8 UTF-8" > /etc/locale.gen RUN locale-gen en_US.UTF-8 -ENV LANG en_US.UTF-8 +ENV LANG C.UTF-8 ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 +ENV LC_ALL C.UTF-8 ENV RUBY_VERSION 2.6.5 RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-${RUBY_VERSION}.tar.gz" \ diff --git a/Dockerfile.omnibus-gitlab-jessie b/Dockerfile.omnibus-gitlab-jessie index 6b86765..fb5e06e 100644 --- a/Dockerfile.omnibus-gitlab-jessie +++ b/Dockerfile.omnibus-gitlab-jessie @@ -6,11 +6,11 @@ RUN apt-get update -q \ && apt-get clean -yqq \ && rm -rf /var/lib/apt/lists/* -RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen +RUN echo "C.UTF-8 UTF-8" > /etc/locale.gen RUN locale-gen en_US.UTF-8 -ENV LANG en_US.UTF-8 +ENV LANG C.UTF-8 ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 +ENV LC_ALL C.UTF-8 ENV RUBY_VERSION 2.6.5 RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-${RUBY_VERSION}.tar.gz" \ diff --git a/Dockerfile.omnibus-gitlab-opensuse15.1 b/Dockerfile.omnibus-gitlab-opensuse15.1 index faffef2..0a03053 100644 --- a/Dockerfile.omnibus-gitlab-opensuse15.1 +++ b/Dockerfile.omnibus-gitlab-opensuse15.1 @@ -6,10 +6,10 @@ RUN zypper -q -n --gpg-auto-import-keys update \ gcc gcc-c++ git make curl zlib-devel libopenssl-devel glibc-i18ndata glibc-locale hostname \ && zypper clean -a -ENV LANG en_US.UTF-8 -ENV LC_ALL en_US.UTF-8 +ENV LANG C.UTF-8 +ENV LC_ALL C.UTF-8 ENV LANGUAGE en_US:en -RUN localedef -i en_US -f UTF-8 en_US.UTF-8 +RUN localedef -i en_US -f UTF-8 C.UTF-8 ENV RUBY_VERSION 2.6.5 RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-${RUBY_VERSION}.tar.gz" \ diff --git a/Dockerfile.omnibus-gitlab-stretch b/Dockerfile.omnibus-gitlab-stretch index 076638c..45eb0c1 100644 --- a/Dockerfile.omnibus-gitlab-stretch +++ b/Dockerfile.omnibus-gitlab-stretch @@ -6,11 +6,11 @@ RUN apt-get update -q \ && apt-get clean -yqq \ && rm -rf /var/lib/apt/lists/* -RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen +RUN echo "C.UTF-8 UTF-8" > /etc/locale.gen RUN locale-gen en_US.UTF-8 -ENV LANG en_US.UTF-8 +ENV LANG C.UTF-8 ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 +ENV LC_ALL C.UTF-8 ENV RUBY_VERSION 2.6.5 diff --git a/Dockerfile.omnibus-gitlab-wheezy b/Dockerfile.omnibus-gitlab-wheezy index f468408..a2c989d 100644 --- a/Dockerfile.omnibus-gitlab-wheezy +++ b/Dockerfile.omnibus-gitlab-wheezy @@ -6,11 +6,11 @@ RUN apt-get update -q \ && apt-get clean -yqq \ && rm -rf /var/lib/apt/lists/* -RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen +RUN echo "C.UTF-8 UTF-8" > /etc/locale.gen RUN locale-gen en_US.UTF-8 -ENV LANG en_US.UTF-8 +ENV LANG C.UTF-8 ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 +ENV LC_ALL C.UTF-8 ENV RUBY_VERSION 2.6.5 RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-${RUBY_VERSION}.tar.gz" \ diff --git a/Dockerfile.omnibus-gitlab-xenial b/Dockerfile.omnibus-gitlab-xenial index a12f0d7..25aff4f 100644 --- a/Dockerfile.omnibus-gitlab-xenial +++ b/Dockerfile.omnibus-gitlab-xenial @@ -6,11 +6,11 @@ RUN apt-get update -q \ && apt-get clean -yqq \ && rm -rf /var/lib/apt/lists/* -RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen +RUN echo "C.UTF-8 UTF-8" > /etc/locale.gen RUN locale-gen en_US.UTF-8 -ENV LANG en_US.UTF-8 +ENV LANG C.UTF-8 ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 +ENV LC_ALL C.UTF-8 ENV RUBY_VERSION 2.6.5 RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.6/ruby-${RUBY_VERSION}.tar.gz" \ diff --git a/Dockerfile.release-tools b/Dockerfile.release-tools index d534667..fe4116b 100644 --- a/Dockerfile.release-tools +++ b/Dockerfile.release-tools @@ -3,6 +3,6 @@ FROM ruby:2.7-alpine RUN apk add --update --no-cache build-base cmake git openssh-client openssl-dev # Set UTF-8 http://jaredmarkell.com/docker-and-locales/ -ENV LANG en_US.UTF-8 +ENV LANG C.UTF-8 ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 +ENV LC_ALL C.UTF-8 diff --git a/Dockerfile.www-gitlab-com-3.0 b/Dockerfile.www-gitlab-com-3.0 index fd58b46..c2e11db 100644 --- a/Dockerfile.www-gitlab-com-3.0 +++ b/Dockerfile.www-gitlab-com-3.0 @@ -12,6 +12,6 @@ RUN cd /usr/bin && find ../lib/google-cloud-sdk/bin -type f -executable -exec ln # Set UTF-8 http://jaredmarkell.com/docker-and-locales/ # Must be set after install-essentials is run -ENV LANG en_US.UTF-8 +ENV LANG C.UTF-8 ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 +ENV LC_ALL C.UTF-8 diff --git a/scripts/install-essentials b/scripts/install-essentials index d855a32..ac12ed4 100755 --- a/scripts/install-essentials +++ b/scripts/install-essentials @@ -37,10 +37,10 @@ fi # Set UTF-8 # http://stackoverflow.com/a/3182519/2137281 -LOC=$'LC_ALL=en_US.UTF-8\nLANG=en_US.UTF-8' +LOC=$'LC_ALL=C.UTF-8\nLANG=C.UTF-8' echo "$LOC" > /etc/environment cat /etc/environment -echo "en_US.UTF-8 UTF-8" > /etc/locale.gen +echo "C.UTF-8 UTF-8" > /etc/locale.gen locale-gen dpkg-reconfigure locales -f noninteractive -p critical locale -a diff --git a/scripts/install-www-gitlab-com b/scripts/install-www-gitlab-com index 14ff49e..3d1d55a 100755 --- a/scripts/install-www-gitlab-com +++ b/scripts/install-www-gitlab-com @@ -36,9 +36,9 @@ mv gitlab-ci-multi-runner-linux-amd64 /usr/bin/gitlab-runner-helper chmod +x /usr/bin/gitlab-runner-helper # Set UTF-8 -echo "en_US.UTF-8 UTF-8" > /etc/locale.gen +echo "C.UTF-8 UTF-8" > /etc/locale.gen locale-gen -update-locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8 +update-locale LANG=C.UTF-8 LC_CTYPE=C.UTF-8 LC_ALL=C.UTF-8 locale -a # Clean up