We have some apps that do some very slow lookups to external resources, and we currenlty cache them using memcache, but adding the dalli gem that is required for memcache support is always a pain.
Is it possible that the dalli gem is part of the ondemand gems bundle? (we only need it for the dashboard app)
we currently use the rh-ruby25 gem to install the bundle, and then copy the content of the gems lib to a generic ruby search path (but not a default gem install path).
the issue likely is that the bundle (or the way bundler works, not sure and not a ruby expert) restricts all possible gem paths that are searched (i strace’d passenger to find a path that was searched by default to place the rb files in)
we might package it up, but even if there was a rpm from eg. scl with the gem, it wouldn’t be discovered anyway
We could probably add this as a gem to be available in future release. Until then, here is an alternative approach. You can modify /var/www/ood/apps/dashboard/Gemfile to include this line:
gem 'dalli'
And then in that directory you can run this command:
This will reinstall a copy of all the gems to the dashboard app’s local vendor/bundle directory and then drop a .bundle/config file that stores the path to where those gems are located.