1
0
Fork 0
mirror of https://github.com/docker-library/ruby.git synced 2022-11-09 11:41:34 -05:00

Set LANG by default

Ruby docker images officially provided by ruby-lang.org set `LANG` as `C.UTF-8` by default.

https://hub.docker.com/r/rubylang/ruby/

36c5d8b68e/Dockerfile (L3)

https://github.com/docker-library/ruby/issues/45#issuecomment-117298344

> I'd rather see something more official from either Ruby or Rails upstreams
> recommending a UTF-8 locale by default than just the anecdote that it's
> "more common" or "more convenient".

I think it's the one so we should set it by default.
This commit is contained in:
Fumiaki MATSUSHIMA 2020-06-13 13:37:45 +09:00
parent 644570a086
commit 8e49e25b59
No known key found for this signature in database
GPG key ID: 01EF198499B2C0E1
19 changed files with 19 additions and 0 deletions

View file

@ -11,6 +11,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.5 ENV RUBY_MAJOR 2.5
ENV RUBY_VERSION 2.5.8 ENV RUBY_VERSION 2.5.8
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d

View file

@ -11,6 +11,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.5 ENV RUBY_MAJOR 2.5
ENV RUBY_VERSION 2.5.8 ENV RUBY_VERSION 2.5.8
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d

View file

@ -8,6 +8,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.5 ENV RUBY_MAJOR 2.5
ENV RUBY_VERSION 2.5.8 ENV RUBY_VERSION 2.5.8
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d

View file

@ -22,6 +22,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.5 ENV RUBY_MAJOR 2.5
ENV RUBY_VERSION 2.5.8 ENV RUBY_VERSION 2.5.8
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d

View file

@ -8,6 +8,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.5 ENV RUBY_MAJOR 2.5
ENV RUBY_VERSION 2.5.8 ENV RUBY_VERSION 2.5.8
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d

View file

@ -22,6 +22,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.5 ENV RUBY_MAJOR 2.5
ENV RUBY_VERSION 2.5.8 ENV RUBY_VERSION 2.5.8
ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d ENV RUBY_DOWNLOAD_SHA256 0391b2ffad3133e274469f9953ebfd0c9f7c186238968cbdeeb0651aa02a4d6d

View file

@ -11,6 +11,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.6 ENV RUBY_MAJOR 2.6
ENV RUBY_VERSION 2.6.6 ENV RUBY_VERSION 2.6.6
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f

View file

@ -11,6 +11,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.6 ENV RUBY_MAJOR 2.6
ENV RUBY_VERSION 2.6.6 ENV RUBY_VERSION 2.6.6
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f

View file

@ -8,6 +8,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.6 ENV RUBY_MAJOR 2.6
ENV RUBY_VERSION 2.6.6 ENV RUBY_VERSION 2.6.6
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f

View file

@ -22,6 +22,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.6 ENV RUBY_MAJOR 2.6
ENV RUBY_VERSION 2.6.6 ENV RUBY_VERSION 2.6.6
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f

View file

@ -8,6 +8,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.6 ENV RUBY_MAJOR 2.6
ENV RUBY_VERSION 2.6.6 ENV RUBY_VERSION 2.6.6
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f

View file

@ -22,6 +22,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.6 ENV RUBY_MAJOR 2.6
ENV RUBY_VERSION 2.6.6 ENV RUBY_VERSION 2.6.6
ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f ENV RUBY_DOWNLOAD_SHA256 5db187882b7ac34016cd48d7032e197f07e4968f406b0690e20193b9b424841f

View file

@ -11,6 +11,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.7 ENV RUBY_MAJOR 2.7
ENV RUBY_VERSION 2.7.1 ENV RUBY_VERSION 2.7.1
ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7 ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7

View file

@ -11,6 +11,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.7 ENV RUBY_MAJOR 2.7
ENV RUBY_VERSION 2.7.1 ENV RUBY_VERSION 2.7.1
ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7 ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7

View file

@ -8,6 +8,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.7 ENV RUBY_MAJOR 2.7
ENV RUBY_VERSION 2.7.1 ENV RUBY_VERSION 2.7.1
ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7 ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7

View file

@ -22,6 +22,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR 2.7 ENV RUBY_MAJOR 2.7
ENV RUBY_VERSION 2.7.1 ENV RUBY_VERSION 2.7.1
ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7 ENV RUBY_DOWNLOAD_SHA256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7

View file

@ -11,6 +11,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR %%VERSION%% ENV RUBY_MAJOR %%VERSION%%
ENV RUBY_VERSION %%FULL_VERSION%% ENV RUBY_VERSION %%FULL_VERSION%%
ENV RUBY_DOWNLOAD_SHA256 %%SHA256%% ENV RUBY_DOWNLOAD_SHA256 %%SHA256%%

View file

@ -8,6 +8,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR %%VERSION%% ENV RUBY_MAJOR %%VERSION%%
ENV RUBY_VERSION %%FULL_VERSION%% ENV RUBY_VERSION %%FULL_VERSION%%
ENV RUBY_DOWNLOAD_SHA256 %%SHA256%% ENV RUBY_DOWNLOAD_SHA256 %%SHA256%%

View file

@ -22,6 +22,7 @@ RUN set -eux; \
echo 'update: --no-document'; \ echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc } >> /usr/local/etc/gemrc
ENV LANG C.UTF-8
ENV RUBY_MAJOR %%VERSION%% ENV RUBY_MAJOR %%VERSION%%
ENV RUBY_VERSION %%FULL_VERSION%% ENV RUBY_VERSION %%FULL_VERSION%%
ENV RUBY_DOWNLOAD_SHA256 %%SHA256%% ENV RUBY_DOWNLOAD_SHA256 %%SHA256%%