Bundler groups » History » Version 3
Leos Stejskal, 10/15/2021 12:02 PM
1 | 1 | Ohad Levy | h1. Bundler groups |
---|---|---|---|
2 | |||
3 | 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 | |||
5 | Since foreman upgraded to rails 3.x, we also moved to using "Bunder":http://gembundler.com/. |
||
6 | |||
7 | 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 | |||
9 | |||
10 | h1. How to exclude groups from bundler |
||
11 | |||
12 | <pre> |
||
13 | bundle install --without group1 group2 group3 |
||
14 | </pre> |
||
15 | |||
16 | you can also review/edit .bundle/config file instead. |
||
17 | |||
18 | |||
19 | the current groups break down more or less into to main categories: |
||
20 | |||
21 | h2. Database |
||
22 | |||
23 | 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 | |||
25 | So assuming you want to use postgres, simply run: |
||
26 | |||
27 | <pre> |
||
28 | bundle install --without sqlite mysql mysql2 ... |
||
29 | </pre> |
||
30 | |||
31 | h3. MySQL |
||
32 | |||
33 | 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 | |||
35 | h2. Compute Resource related groups |
||
36 | |||
37 | h3. EC2 |
||
38 | |||
39 | requires the *fog* group |
||
40 | |||
41 | 2 | Ohad Levy | h3. oVirt |
42 | 1 | Ohad Levy | |
43 | requires the *fog* and *ovirt* groups |
||
44 | |||
45 | h3. Libvirt |
||
46 | |||
47 | requires the *fog* and *libvirt* groups |
||
48 | |||
49 | h3. VMWare |
||
50 | |||
51 | requires the *fog* and *vmware* groups |
||
52 | |||
53 | h2. Development / Test groups |
||
54 | |||
55 | requires *test* and *development* groups. |
||
56 | |||
57 | note that if you are using the rails console, its also recommended to use the console group for better text formatting / helpers etc. |