Commit ba52f845011dd4fa405b75a723b59d039d2a20b9
1 parent
926580ec
Exists in
master
and in
17 other branches
Add Ubuntu build instructions to README.md
Showing
1 changed file
with
22 additions
and
4 deletions
Show diff stats
README.md
@@ -3,13 +3,31 @@ | @@ -3,13 +3,31 @@ | ||
3 | This project creates full-stack platform-specific packages for | 3 | This project creates full-stack platform-specific packages for |
4 | GitLab! | 4 | GitLab! |
5 | 5 | ||
6 | -## Installation | 6 | +## Preparing a build environment on Ubuntu 12.04 |
7 | 7 | ||
8 | -We'll assume you have Ruby 1.9+ and Bundler installed. First ensure all | ||
9 | -required gems are installed and ready to use: | 8 | +To create builds you will need a build user (`ubuntu:ubuntu` in our example). |
9 | +Preparing the build machine requires sudo access. | ||
10 | 10 | ||
11 | ```shell | 11 | ```shell |
12 | -$ bundle install --binstubs | 12 | +# Install dependencies |
13 | +sudo apt-get install ruby1.9.1 ruby1.9.1-dev git build-essential | ||
14 | +sudo gem install --no-ri --no-rdoc bundler | ||
15 | + | ||
16 | +# Create build directories for use by the build user | ||
17 | +sudo mkdir -p /opt/gitlab /var/cache/omnibus | ||
18 | +# We assume the build user and group is 'ubuntu' | ||
19 | +sudo chown ubuntu:ubuntu /opt/gitlab /var/cache/omnibus | ||
20 | +``` | ||
21 | + | ||
22 | +Then, as the build user: | ||
23 | + | ||
24 | +```shell | ||
25 | +# Clone the omnibus repo | ||
26 | +git clone https://gitlab.com/gitlab-org/omnibus-gitlab.git | ||
27 | + | ||
28 | +# Install gem dependencies for omnibus-ruby | ||
29 | +cd omnibus-gitlab | ||
30 | +bundle install --path .bundle --binstubs | ||
13 | ``` | 31 | ``` |
14 | 32 | ||
15 | ## Usage | 33 | ## Usage |