Commit d523317dfc2981ecc7278d7cfcb7de9e33c918ad
Exists in
master
and in
2 other branches
Merge branch 'build/centos7' into 'master'
Add build documentation for Centos 7 See merge request !185
Showing
1 changed file
with
37 additions
and
0 deletions
Show diff stats
doc/build.md
| ... | ... | @@ -94,6 +94,43 @@ bundle install --path .bundle --binstubs |
| 94 | 94 | bin/omnibus build project gitlab |
| 95 | 95 | ``` |
| 96 | 96 | |
| 97 | +### Centos 7 | |
| 98 | + | |
| 99 | +As an administrator (or root): | |
| 100 | + | |
| 101 | +``` | |
| 102 | +yum update | |
| 103 | + | |
| 104 | +# Firewall is OK by default?? | |
| 105 | + | |
| 106 | +# Check for SSH password logins; they should be disabled | |
| 107 | +grep '^[^#]*PasswordAuthentication' /etc/ssh/sshd_config | |
| 108 | + | |
| 109 | +sudo yum groupinstall 'Development Tools' | |
| 110 | +sudo yum install ruby ruby-devel cmake | |
| 111 | +sudo gem install bundler --no-ri --no-rdoc | |
| 112 | + | |
| 113 | +# Create the build user | |
| 114 | +sudo adduser -c 'Omnibus Build' omnibus-build | |
| 115 | +# Create build directories for use by the build user | |
| 116 | +sudo mkdir -p /opt/gitlab /var/cache/omnibus | |
| 117 | +sudo chown omnibus-build:omnibus-build /opt/gitlab /var/cache/omnibus | |
| 118 | +``` | |
| 119 | + | |
| 120 | +As the build user (omnibus-build): | |
| 121 | + | |
| 122 | +```shell | |
| 123 | +# Clone the omnibus repo | |
| 124 | +git clone https://gitlab.com/gitlab-org/omnibus-gitlab.git | |
| 125 | + | |
| 126 | +# Install gem dependencies for omnibus-ruby | |
| 127 | +cd omnibus-gitlab | |
| 128 | +bundle install --path .bundle --binstubs | |
| 129 | + | |
| 130 | +# Do a build (and take a break from the computer) | |
| 131 | +bin/omnibus build project gitlab | |
| 132 | +``` | |
| 133 | + | |
| 97 | 134 | ## Usage |
| 98 | 135 | |
| 99 | 136 | ### Build | ... | ... |