Project

General

Profile

Actions

Bug #6690

closed

[Deployment] Better strategy for keeping Ruby up-to-date (both RVM and manual installs lag behind)

Added by Tom Clegg over 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
Deployment
Target version:
-
Story points:
-

Description

After being installed (via RVM or building from source), Ruby does not get updated along with other OS packages via "yum update", "apt-get upgrade", etc. This way it can stay stale for years. Possible ways to mitigate this:
  • Recommend (and document the process for) regular updates in the install guide.
  • Encode the Ruby version as a dependency in our Ruby-based services (perhaps ruby '2.1.6' in Gemfile? bundler docs explicitly say "can't specify patchlevel" and don't mention whether "~>" is supported, so perhaps a different mechanism.)
  • Put Ruby packages in our own package repos, and recommend installing those. (Related: if we also support chruby in the places where we already have explicit RVM support, we can accommodate multiple ruby versions on a single machine but leave open the possibility of installing the rubies with the system's native package manager.)
RVM has an additional problem: it lags behind Ruby updates. Currently, even a fresh install gives you Ruby 2.1.5 if you follow the RVM option (which is presented first) even though 2.1.6 fixes security bugs and has been out for months. Possible ways to mitigate this:
  • Don't use RVM, or any other ruby-switcher that acts as a Ruby version gatekeeper but isn't updated aggressively. (chruby seems to be the switcher without this problem.)
  • Use RVM but tell it to build from source ("rvm install --disable-binary"?). This doesn't seem to help; currently the build recipes are just as outdated as the binary packages.
Actions #1

Updated by Tom Clegg over 8 years ago

  • Project changed from 35 to Arvados
  • Subject changed from [Deployment] Strategy for keeping Ruby up-to-date (both RVM and manual installs lag behind) to [Deployment] Better strategy for keeping Ruby up-to-date (both RVM and manual installs lag behind)
  • Description updated (diff)
  • Category set to Deployment
Actions #2

Updated by Nico César over 8 years ago

wx7k5 was deployed with ruby 2.1.7 changing the puppet conf

rvm::system_rubies:
  'ruby-2.1.7':
    default_use: true

extra dependencies were neede (libgmp-dev ) that I'll be adding to puppet. but this is basically all we needed here at curoverse

Actions #3

Updated by Peter Amstutz over 4 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF