From 0cab0f67358d20e589e2ed4f9d4ce55685f4274b Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Tue, 18 Nov 2014 11:44:09 +0000 Subject: omnibus: Recommend `--deployment` flag for `bundle install` This avoids a situation where `bundle install` expects a bunch of stuff to exist in /usr or /home but you have since moved the repo around. Installing stuff in /usr is not recommended in Baserock because it gets lost on upgrades (and /usr will one day be read only, I expect). --- README.omnibus | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.omnibus b/README.omnibus index 840bbab..9d6e70b 100644 --- a/README.omnibus +++ b/README.omnibus @@ -10,8 +10,10 @@ First, clone the Git repository corresponding to the Omnibus project you want to import. For example, if you want to import the Chef Server, clone: -As per Omnibus' instructions, you should then run `bundle install --binstubs` -in the checkout to make available the various dependent repos and Gems of the -project definitions. - - +You should then run `bundle install --binstubs --deployment` in the checkout to +make available the various dependent repos and Gems of the project definitions. +The Omnibus documentation recommends running this without the `--deployment` +flag, but I recommend that you use this flag so that all the Gems are in the +local repo (in the vendor/cache directory) and not installed into /usr on the +host. That way your work is independent of the system and won't break if you +upgrade or if /usr is read-only. -- cgit v1.2.1