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

17 commits

Author SHA1 Message Date
Fumiaki MATSUSHIMA
8e49e25b59
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.
2020-06-25 11:54:56 +09:00
David Rodríguez
82eecb7596
Alternative fix
Stop setting `BUNDLE_PATH`.

All default bundler versions shipped with all supported rubies install
gems to `GEM_HOME` by default, so this shouldn't be a breaking change
and it's a less surprising behavior because it does not deviate from how
bundler is configured by default.

Future versions will probably install locally by default, but that
hasn't happened yet.

I think leaving bundler "unconfigured" also matches the direction of the
recent change where the images no longer explicitly install `bundler` but
simply leave whatever version comes with ruby. Similarly, it makes sense
to me to leave whatever configuration comes by default with `bundler` in
place.
2020-01-03 18:05:39 +01:00
David Rodríguez
7df74adde3
Add paths scoped to ruby version to PATH and GEM_PATH
Newer bundler versions install gems to `$GEM_HOME/ruby/<ruby_version>`,
instead of directly to `$GEM_HOME`.

So we need to add the proper paths to `GEM_PATH` and `PATH` so that gems
and their executables are properly found.
2020-01-03 16:23:14 +01:00
David Rodríguez
8f3650c2ea
Remove unnecessary PATH modification
I don't think that folder exists :/
2020-01-03 14:31:14 +01:00
David Rodríguez
4e90a92eb2
Revert "Prefer BUNDLE_PATH__SYSTEM=true"
This reverts commit e040029c82.
2019-07-12 11:16:20 +02:00
David Rodríguez
e040029c82
Prefer BUNDLE_PATH__SYSTEM=true 2019-06-26 13:03:31 +02:00
Tianon Gravi
aacff43981 Add some verification that we have no "distro ruby" packages 2019-06-25 16:03:12 -07:00
Tianon Gravi
f8c8256104 Switch from "&&" to ";" and use "apt-mark showmanual"+"ldd" method for non-slim Debian too 2019-06-25 12:12:14 -07:00
Tianon Gravi
5d977ba3d1 Remove Ruby 2.3 (EOL)
See https://www.ruby-lang.org/en/news/2019/03/31/support-of-ruby-2-3-has-ended/ (official EOL announcement saying there will be no more fixes in 2.3).
2019-04-04 10:16:10 -07:00
Tianon Gravi
84db4691c0 Adjust RUBYGEMS_VERSION to be fixed at either 3.0.1 or the Ruby-bundled version, whichever is newer
This also adjusts Bundler to be explicitly fixed at either 1.17.2 or the Ruby/Rubygems-bundled version, whichever is newer -- this is slightly older than what we've already pushed (1.17.3), but nothing in the changelog appears to be relevant, so this seems fine: https://github.com/bundler/bundler/compare/v1.17.2...v1.17.3#diff-4ac32a78649ca5bdd8e0ba38b7006a1e

For Ruby 2.6, this means we no longer do anything to the bundled Rubygems (or Bundler), and simply provide whatever comes with the Ruby release as-is, and it is now up to users to explicitly update if they need a newer version than is provided here.
2019-01-04 15:30:47 -08:00
Tianon Gravi
699a043113 Remove BUNDLE_BIN and add GEM_HOME/bin back to PATH
See https://github.com/docker-library/ruby/pull/208#issuecomment-390755292
2018-05-23 10:00:40 -07:00
Joe Ferguson
77515a0627 Add link to bundler/bundler comment 2018-05-16 12:32:39 -07:00
Joe Ferguson
ee0b15d76c Fix PATH to use the fully generic binstubs
bundler binstubs are not necessarily generic; they were until bundler 1.16 and should be fixed back, but will likely be non-generic again by default in 2.0

See https://github.com/bundler/bundler/pull/6469#issuecomment-383235438
2018-05-15 14:12:56 -07:00
Felipe Sateler
4d2e178d38 Add libssl1.0-dev mangling to the auto update script and run update.sh 2018-01-26 14:59:11 -08:00
Stephen Crosby
c9a4472a01
Remove /root/.gem to shrink image size 2018-01-22 16:19:04 -08:00
Fumiaki MATSUSHIMA
6959194971 Add 2.5-rc builds 2017-10-24 13:33:02 +09:00
Tianon Gravi
a6918175fd Add explicit "jessie" and "alpine3.4" aliases 2017-07-31 16:48:09 -07:00
Renamed from Dockerfile.template (Browse further)