ruby on rails - Install gems on docker -


i develop app using rails , docker. faced issue: when run

docker-compose -f dcom-dev.yml run --user $(id -u)  web gem install google-api-client 

it runs good, if write gemfile gem 'google-api-client' , run

docker-compose -f dcom-dev.yml run --user $(id -u)  web bundle install 

it failes several warnings this:

errno::enoent: no such file or directory @ rb_sysopen - /.gem/ruby/2.3.0/cache/memoist-0.14.0.gem 

and error this:

an error occurred while installing memoist (0.14.0), , bundler cannot continue. make sure `gem install memoist -v '0.14.0'` succeeds before bundling. 

if run gem install manually, works fine, bundle install throws error gem (little-plugger). if install second gem manually, bundler throws message first gem (memoist) again , repeats again , again. this? in advance!

it helped me remove --user $(id -u).


Comments