hyku
hyku copied to clipboard
Local docker build fails at 'bundle check'
Descriptive summary
affects HEAD (b8641ff61ad58a6d39689c1718f4365ce803918c)
Docker build fails at 'bundle check' because of a known bundler bug see https://bundler.io/blog/2019/05/14/solutions-for-cant-find-gem-bundler-with-executable-bundle.html
Expected behavior
i) docker build runs smoothly, when adding the proposed solution
after Line https://github.com/samvera/hyku/blob/b8641ff61ad58a6d39689c1718f4365ce803918c/Dockerfile.base#L38
RUN gem update --system
ii) Update to Ruby 2.6.3 which includes a version of RubyGems with the fix
Actual behavior
traceback :
Step 7/8 : RUN /sbin/setuser app bash -l -c "set -x && (bundle check || bundle install) && bundle exec rake assets:precompile DB_ADAPTER=nulldb && mv ./public/assets ./public/assets-new"
---> Running in 27e773abe8d9
+ bundle check
/usr/local/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)
from /usr/local/rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
from /usr/local/rvm/gems/ruby-2.5.3@global/bin/bundle:23:in `<main>'
from /usr/local/rvm/gems/ruby-2.5.3/bin/ruby_executable_hooks:24:in `eval'
from /usr/local/rvm/gems/ruby-2.5.3/bin/ruby_executable_hooks:24:in `<main>'
Steps to reproduce the behavior
- clone this repo (at b8641ff61ad58a6d39689c1718f4365ce803918c)
- run
docker-compose up web