-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove BUNDLE_BIN and add GEM_HOME/bin back to PATH #209
Conversation
I tested with both |
I wonder if this means we should at least partially revert docker-library/docs#1221 too? I guess it's still pretty relevant. |
928d3bc
to
0c8dfb3
Compare
Yay green finally! |
Thanks for the fix @tianon. Any idea when this is going to be merged and released ? I believe that a lot of people are going to be impacted by the recent release on most tags that breaks the gems binary path. |
In the latest Ruby alpine image they removed the /usr/local/bundle/bin path from the PATH which causes installed gem binaries not to be on the path anymore. We need to temporarily fix this until they sort out docker-library/ruby#209.
In the latest Ruby alpine image they removed the /usr/local/bundle/bin path from the PATH which causes installed gem binaries not to be on the path anymore. We need to temporarily fix this until they sort out docker-library/ruby#209.
Doh, good point; @yosifkit can you review this ASAP today? 😇 |
thanks 🙏 ! |
- `drupal`: new arches (thanks to Alpine 3.4 deprecation) - `redmine`: update Redmine 3.3 to Ruby 2.3, remove Redmine 3.2 (docker-library/redmine#115) - `ruby`: remove `BUNDLE_BIN`, adjust `PATH` (docker-library/ruby#209) - `wordpress`: new arches (thanks to Alpine 3.4 deprecation)
It looks like dockerhub still contains broken images. I get the following with the latest image from there
|
It looks like it does not work when I use |
Gah, From https://bundler.io/v1.0/man/bundle-install.1.html#DEPLOYMENT-MODE:
Was |
yep, it worked before |
Any chance we can get this applied to the ruby 2.1.x image as well? |
Unfortunately not, Ruby 2.1 is unsupported (both by us and by Ruby
upstream), but it shouldn't be too much work to find the old Dockerfile we
used and update it with this change yourself for your own builds (which is
a good idea regardless if you rely on that old version).
|
Fair enough. Thanks for the response! |
which create binstubs that set BUNDLER_GEMFILE see rubygems/bundler#6162 see rubygems/bundler#6154 and see docker-library/ruby#209 which was the fix for cruby docker images
previously we had to because of these bugs: bundler: - rubygems/bundler#6162 - rubygems/bundler#6154 cruby docker: - docker-library/ruby#209 - docker-library/ruby#306 jruby docker: - jruby/docker-jruby#65 - https://github.com/cpuguy83/docker-jruby/pull/67/files
* Update examples from "ruby:3.0" to "ruby:3.3" Previous: #2051 3.0 images are not build/updated anymore * Drop mentions of unused bundler env variables for ruby Dropped in: * docker-library/ruby#209 * docker-library/ruby#306
See #208 (comment)
This is a follow-up to #208.
Refs #188, #191, #193