Project

General

Profile

Bundler groups » History » Version 1

Ohad Levy, 06/19/2012 03:04 AM

1 1 Ohad Levy
h1. Bundler groups
2 1 Ohad Levy
3 1 Ohad Levy
First of all, if you installed foreman via a package (rpm, deb) you should not care much about bundler and bundler groups, however feel free to stick around.
4 1 Ohad Levy
5 1 Ohad Levy
Since foreman upgraded to rails 3.x, we also moved to using "Bunder":http://gembundler.com/.
6 1 Ohad Levy
7 1 Ohad Levy
In order not to force all users to install all possible library stacks (e.g. if you don't care about provisioning, you don't really need the code which handles EC2), we've have broken down the gem list into groups.
8 1 Ohad Levy
9 1 Ohad Levy
10 1 Ohad Levy
h1. How to exclude groups from bundler
11 1 Ohad Levy
12 1 Ohad Levy
<pre>
13 1 Ohad Levy
bundle install --without group1 group2 group3
14 1 Ohad Levy
</pre>
15 1 Ohad Levy
16 1 Ohad Levy
you can also review/edit .bundle/config file instead.
17 1 Ohad Levy
18 1 Ohad Levy
19 1 Ohad Levy
the current groups break down more or less into to main categories:
20 1 Ohad Levy
21 1 Ohad Levy
h2. Database 
22 1 Ohad Levy
23 1 Ohad Levy
we currently support *sqlite*, *mysql* and postgres* databases, and since you only need one of those, you need to tell bundler not to install all of the rest
24 1 Ohad Levy
25 1 Ohad Levy
So assuming you want to use postgres, simply run:
26 1 Ohad Levy
27 1 Ohad Levy
<pre>
28 1 Ohad Levy
bundle install --without sqlite mysql mysql2 ...
29 1 Ohad Levy
</pre>
30 1 Ohad Levy
31 1 Ohad Levy
h3. MySQL
32 1 Ohad Levy
33 1 Ohad Levy
Rails supports two different 'drivers' to communicate with a MySQL server (or servers), mysql gem normally works, but people had great results with mysql2 and it seems to be more maintained these days.
34 1 Ohad Levy
35 1 Ohad Levy
h2. Compute Resource related groups
36 1 Ohad Levy
37 1 Ohad Levy
h3. EC2
38 1 Ohad Levy
39 1 Ohad Levy
requires the *fog* group
40 1 Ohad Levy
41 1 Ohad Levy
h3. oVirt / Libvirt
42 1 Ohad Levy
43 1 Ohad Levy
requires the *fog* and *ovirt* groups
44 1 Ohad Levy
45 1 Ohad Levy
h3. Libvirt
46 1 Ohad Levy
47 1 Ohad Levy
requires the *fog* and *libvirt* groups
48 1 Ohad Levy
49 1 Ohad Levy
h3. VMWare
50 1 Ohad Levy
51 1 Ohad Levy
requires the *fog* and *vmware* groups
52 1 Ohad Levy
53 1 Ohad Levy
h2. Development / Test groups
54 1 Ohad Levy
55 1 Ohad Levy
requires *test* and *development* groups.
56 1 Ohad Levy
57 1 Ohad Levy
note that if you are using the rails console, its also recommended to use the console group for better text formatting / helpers etc.