Skip to content

Conversation

@mtsmfm
Copy link
Contributor

@mtsmfm mtsmfm commented Jun 1, 2020

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

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

https://github.com/ruby/ruby-docker-images/blob/36c5d8b68eb91e34825500e50ca677f5574401f7/Dockerfile#L3

#45 (comment)

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.

@mtsmfm
Copy link
Contributor Author

mtsmfm commented Jun 8, 2020

@tianon What do you think?

@mtsmfm mtsmfm force-pushed the set-lang-by-default branch from ed6359c to 6d8b595 Compare June 13, 2020 04:38
@mtsmfm
Copy link
Contributor Author

mtsmfm commented Jun 13, 2020

I've fixed conflict and force-pushed

@mtsmfm
Copy link
Contributor Author

mtsmfm commented Jun 13, 2020

It seems failed tests are not related to this PR.

rubysec/bundler-audit#265

-> It's fixed by bundler-audit 0.7.1
I recreated the commit and force pushed again to re-run tests

@mtsmfm mtsmfm force-pushed the set-lang-by-default branch from 6d8b595 to eb00d86 Compare June 13, 2020 07:56
@yosifkit
Copy link
Member

Thanks! This seems fine to me. I didn't notice that upstream was even making their own images; thanks for pointing them out 🤘.

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

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

https://github.com/ruby/ruby-docker-images/blob/36c5d8b68eb91e34825500e50ca677f5574401f7/Dockerfile#L3

docker-library#45 (comment)

> 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.
@mtsmfm mtsmfm force-pushed the set-lang-by-default branch from eb00d86 to 8e49e25 Compare June 25, 2020 02:55
@mtsmfm
Copy link
Contributor Author

mtsmfm commented Jun 25, 2020

@yosifkit @tianon Thank you for reviewing, I've fixed and force pushed!

@tianon tianon merged commit 8813cdd into docker-library:master Jun 25, 2020
@tianon
Copy link
Member

tianon commented Jun 25, 2020

Thanks!

docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jun 25, 2020
Changes:

- docker-library/ruby@8813cdd: Merge pull request docker-library/ruby#320 from mtsmfm/set-lang-by-default
- docker-library/ruby@8e49e25: Set LANG by default
@mtsmfm mtsmfm deleted the set-lang-by-default branch June 25, 2020 21:26
bquorning added a commit to rubocop/circleci-ruby-snapshot-image that referenced this pull request Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants