From ba52f845011dd4fa405b75a723b59d039d2a20b9 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Wed, 5 Feb 2014 16:52:23 +0100 Subject: [PATCH] Add Ubuntu build instructions to README.md --- README.md | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fa3fb6b..6eda0e9 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,31 @@ This project creates full-stack platform-specific packages for GitLab! -## Installation +## Preparing a build environment on Ubuntu 12.04 -We'll assume you have Ruby 1.9+ and Bundler installed. First ensure all -required gems are installed and ready to use: +To create builds you will need a build user (`ubuntu:ubuntu` in our example). +Preparing the build machine requires sudo access. ```shell -$ bundle install --binstubs +# Install dependencies +sudo apt-get install ruby1.9.1 ruby1.9.1-dev git build-essential +sudo gem install --no-ri --no-rdoc bundler + +# Create build directories for use by the build user +sudo mkdir -p /opt/gitlab /var/cache/omnibus +# We assume the build user and group is 'ubuntu' +sudo chown ubuntu:ubuntu /opt/gitlab /var/cache/omnibus +``` + +Then, as the build user: + +```shell +# Clone the omnibus repo +git clone https://gitlab.com/gitlab-org/omnibus-gitlab.git + +# Install gem dependencies for omnibus-ruby +cd omnibus-gitlab +bundle install --path .bundle --binstubs ``` ## Usage -- libgit2 0.21.2