Commit 205cd8fedd2130531e11404662d619718df359eb
Exists in
master
and in
17 other branches
Merge branch 'centos_build_instructions' into 'master'
Centos Build Instructions
Showing
1 changed file
with
44 additions
and
5 deletions
Show diff stats
README.md
... | ... | @@ -51,11 +51,13 @@ Omnibus-gitlab uses four different directories. |
51 | 51 | - `/var/log/gitlab` contains all log data generated by components of |
52 | 52 | omnibus-gitlab. |
53 | 53 | |
54 | -## Preparing a build environment on Ubuntu 12.04 | |
54 | +## Preparing a build environment | |
55 | 55 | |
56 | -To create builds you will need a build user (`ubuntu:ubuntu` in our example). | |
56 | +To create builds you will need a build user (`omnibus-build:omnibus-build` in our example). | |
57 | 57 | Preparing the build machine requires sudo access. |
58 | 58 | |
59 | +### Ubuntu 12.04 | |
60 | + | |
59 | 61 | ```shell |
60 | 62 | # Install dependencies |
61 | 63 | sudo apt-get install ruby1.9.1 ruby1.9.1-dev git build-essential |
... | ... | @@ -63,11 +65,11 @@ sudo gem install --no-ri --no-rdoc bundler |
63 | 65 | |
64 | 66 | # Create build directories for use by the build user |
65 | 67 | sudo mkdir -p /opt/gitlab /var/cache/omnibus |
66 | -# We assume the build user and group is 'ubuntu' | |
67 | -sudo chown ubuntu:ubuntu /opt/gitlab /var/cache/omnibus | |
68 | +# We assume the build user and group is 'omnibus-build' | |
69 | +sudo chown omnibus-build:omnibus-build /opt/gitlab /var/cache/omnibus | |
68 | 70 | ``` |
69 | 71 | |
70 | -Then, as the build user: | |
72 | +Then, as the build user (omnibus-build): | |
71 | 73 | |
72 | 74 | ```shell |
73 | 75 | # Clone the omnibus repo |
... | ... | @@ -76,6 +78,43 @@ git clone https://gitlab.com/gitlab-org/omnibus-gitlab.git |
76 | 78 | # Install gem dependencies for omnibus-ruby |
77 | 79 | cd omnibus-gitlab |
78 | 80 | bundle install --path .bundle --binstubs |
81 | + | |
82 | +# Do a build (and take a break from the computer) | |
83 | +bin/omnibus build project gitlab | |
84 | +``` | |
85 | + | |
86 | +### Centos 6.5 | |
87 | + | |
88 | +```shell | |
89 | +sudo yum groupinstall 'Development Tools' | |
90 | +# Install RedHat Software Collections to get Ruby 1.9.3 | |
91 | +sudo yum install centos-release-SCL | |
92 | +sudo yum install ruby193 ruby193-ruby-devel | |
93 | + | |
94 | +# Create build directories for use by the build user | |
95 | +sudo mkdir -p /opt/gitlab /var/cache/omnibus | |
96 | +# We assume the build user and group is 'omnibus-build' | |
97 | +sudo chown omnibus-build:omnibus-build /opt/gitlab /var/cache/omnibus | |
98 | +``` | |
99 | + | |
100 | +As the build user (omnibus-build): | |
101 | + | |
102 | +```shell | |
103 | +# Enable Ruby 1.9.3 from Software Collections | |
104 | +echo 'exec scl enable ruby193 bash' >> .bash_profile | |
105 | +# Start a new login shell so we do not have to log out and in | |
106 | +# this one time | |
107 | +bash --login | |
108 | + | |
109 | +# Clone the omnibus repo | |
110 | +git clone https://gitlab.com/gitlab-org/omnibus-gitlab.git | |
111 | + | |
112 | +# Install gem dependencies for omnibus-ruby | |
113 | +cd omnibus-gitlab | |
114 | +bundle install --path .bundle --binstubs | |
115 | + | |
116 | +# Do a build (and take a break from the computer) | |
117 | +bin/omnibus build project gitlab | |
79 | 118 | ``` |
80 | 119 | |
81 | 120 | ## Usage | ... | ... |