ManageIQ / container-ruby

Container with Ruby and built on CentOS, for ManageIQ
Apache License 2.0
2 stars 15 forks source link

Fix $RUBY_GEMS_ROOT in Dockerfile #5

Closed NickLaMuro closed 6 years ago

NickLaMuro commented 6 years ago

With the addition from ea8c9653 :

Install ruby with --system

To the Dockerfile, this makes it so ruby is no longer installed into /opt/rubies/ruby-2.3.1, but instead /usr/local/lib/ruby (the behavior of --system in ruby-install). This fix updates the RUBY_GEMS_ROOT ENV variable to reflect that properly.

This also means that /usr/local/bin already has the ruby binary installed, so modifying the $PATH is no longer necessary.

This was throwing me off quite significantly hen working with this container image.

Links

NickLaMuro commented 6 years ago

cc @carbonin @bdunne