From 3dc34ec9fb1bcc5c1815430f0f4bf80444bd6bc0 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Mon, 18 Aug 2014 16:15:59 +0200 Subject: [PATCH] Add build documentation for Centos 7 --- doc/build.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+), 0 deletions(-) diff --git a/doc/build.md b/doc/build.md index e82f0b7..df2a427 100644 --- a/doc/build.md +++ b/doc/build.md @@ -94,6 +94,43 @@ bundle install --path .bundle --binstubs bin/omnibus build project gitlab ``` +### Centos 7 + +As an administrator (or root): + +``` +yum update + +# Firewall is OK by default?? + +# Check for SSH password logins; they should be disabled +grep '^[^#]*PasswordAuthentication' /etc/ssh/sshd_config + +sudo yum groupinstall 'Development Tools' +sudo yum install ruby ruby-devel cmake +sudo gem install bundler --no-ri --no-rdoc + +# Create the build user +sudo adduser -c 'Omnibus Build' omnibus-build +# Create build directories for use by the build user +sudo mkdir -p /opt/gitlab /var/cache/omnibus +sudo chown omnibus-build:omnibus-build /opt/gitlab /var/cache/omnibus +``` + +As the build user (omnibus-build): + +```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 + +# Do a build (and take a break from the computer) +bin/omnibus build project gitlab +``` + ## Usage ### Build -- libgit2 0.21.2