summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-18 11:44:09 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-18 16:52:41 +0000
commit0cab0f67358d20e589e2ed4f9d4ce55685f4274b (patch)
treecef53574ac3388ad97343e49ee6eaa1389c1891a
parent7aef49ca7a7888a42ba7bef97a681912cf01e4f2 (diff)
downloadimport-0cab0f67358d20e589e2ed4f9d4ce55685f4274b.tar.gz
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).
-rw-r--r--README.omnibus12
1 files 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:
<https://github.com/opscode/omnibus-chef-server>
-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.