Skip to content

Commit 6e4bcf1

Browse files
committed
Merge branch 'update_guide' into 'master'
Update guide Let's follow upstream guide.
2 parents 22d7a72 + 3c23895 commit 6e4bcf1

File tree

1 file changed

+33
-43
lines changed

1 file changed

+33
-43
lines changed

install/centos/README.md

Lines changed: 33 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ Remove any other Ruby build if it is still present:
232232
Download Ruby and compile it:
233233

234234
mkdir /tmp/ruby && cd /tmp/ruby
235-
curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p451.tar.gz | tar xz
236-
cd ruby-2.0.0-p451
235+
curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p481.tar.gz | tar xz
236+
cd ruby-2.0.0-p481
237237
./configure --disable-install-rdoc
238238
make
239239
make prefix=/usr/local install
240240

241241
Install the Bundler Gem:
242242

243-
gem install bundler --no-ri --no-rdoc
243+
gem install bundler --no-doc
244244

245245
Logout and login again for the `$PATH` to take effect. Check that ruby is properly
246246
installed with:
@@ -272,40 +272,12 @@ and append `/usr/local/bin` like so:
272272

273273
Save and exit.
274274

275-
----------
276-
277-
## 4. GitLab shell
278-
279-
GitLab Shell is a ssh access and repository management application developed specifically for GitLab.
280-
281-
282-
# Go to home directory
283-
cd /home/git
284-
285-
# Clone gitlab shell
286-
sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-shell.git -b v1.9.3
287-
288-
cd gitlab-shell
289-
290-
sudo -u git -H cp config.yml.example config.yml
291-
292-
# Edit config and replace gitlab_url
293-
# with something like 'https://domain.com/'
294-
# also edit self_signed_cert to true if you are going to use a self signed cert
295-
sudo -u git -H editor config.yml
296-
297-
# Do setup
298-
sudo -u git -H /usr/local/bin/ruby ./bin/install
299-
300-
# Ensure the correct SELinux contexts are set
301-
# Read http://wiki.centos.org/HowTos/Network/SecuringSSH
302-
restorecon -Rv /home/git/.ssh
303275

304276
----------
305277

306-
## 5. Database
278+
## 4. Database
307279

308-
### 5.1 MySQL
280+
### 4.1 MySQL
309281

310282
Install `mysql` and enable the `mysqld` service to start on boot:
311283

@@ -356,7 +328,7 @@ Quit the database session:
356328

357329
\q
358330

359-
### 5.2 PostgreSQL
331+
### 4.2 PostgreSQL
360332

361333
NOTE: because we need to make use of extensions we need at least pgsql 9.1 and the default 8.x on centos will not work. We need to get the PGDG repositories enabled
362334

@@ -431,7 +403,7 @@ Check the official [documentation][psql-doc-auth] for more information on
431403
authentication methods.
432404

433405
----------
434-
## 6. GitLab
406+
## 5. GitLab
435407

436408
# We'll install GitLab into home directory of the user "git"
437409
cd /home/git
@@ -527,16 +499,31 @@ that were [fixed](https://github.com/bundler/bundler/pull/2817) in 1.5.2.
527499
sudo -u git -H bundle config build.pg --with-pg-config=/usr/pgsql-9.3/bin/pg_config
528500
sudo -u git -H bundle install --deployment --without development test mysql aws
529501

530-
### Initialize Database and Activate Advanced Features
502+
### Install GitLab shell
531503

532-
sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production
504+
GitLab Shell is an ssh access and repository management software developed specially for GitLab.
505+
506+
```
507+
# Go to the Gitlab installation folder:
508+
cd /home/git/gitlab
533509
534-
# Type 'yes' to create the database tables.
510+
# Run the installation task for gitlab-shell (replace `REDIS_URL` if needed):
511+
sudo -u git -H bundle exec rake gitlab:shell:install[v1.9.4] REDIS_URL=redis://localhost:6379 RAILS_ENV=production
535512
536-
# When done you see 'Administrator account created:'
513+
# By default, the gitlab-shell config is generated from your main gitlab config. You can review (and modify) it as follows:
514+
sudo -u git -H editor /home/git/gitlab-shell/config.yml
537515
538-
Type 'yes' to create the database.
539-
When done you see 'Administrator account created:'
516+
# Ensure the correct SELinux contexts are set
517+
# Read http://wiki.centos.org/HowTos/Network/SecuringSSH
518+
restorecon -Rv /home/git/.ssh
519+
```
520+
521+
### Initialize Database and Activate Advanced Features
522+
523+
sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production
524+
525+
Type **yes** to create the database.
526+
When done you see **Administrator account created:**.
540527

541528
### Install Init Script
542529

@@ -568,7 +555,7 @@ Check if GitLab and its environment are configured correctly:
568555

569556
sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
570557

571-
## 7. Configure the web server
558+
## 6. Configure the web server
572559

573560
Use either Nginx or Apache, not both. Official installation guide recommends nginx.
574561

@@ -628,7 +615,7 @@ If you want to run other websites on the same system, you'll need to add in `/et
628615
Listen 443
629616
</IfModule>
630617

631-
## 8. Configure the firewall
618+
## 7. Configure the firewall
632619

633620
Poke an iptables hole so users can access the web server (http and https ports) and ssh.
634621

@@ -676,6 +663,8 @@ nobody can access your GitLab by using this login information later on.
676663

677664
**Enjoy!**
678665

666+
You can also check some [Advanced Setup Tips][tips].
667+
679668
## Links used in this guide
680669

681670
- [EPEL information](http://www.thegeekstuff.com/2012/06/enable-epel-repository/)
@@ -691,3 +680,4 @@ nobody can access your GitLab by using this login information later on.
691680
[issue-nginx]: https://github.com/gitlabhq/gitlabhq/issues/5774
692681
[nginx-centos]: http://wiki.nginx.org/Install#Official_Red_Hat.2FCentOS_packages
693682
[psql-doc-auth]: http://www.postgresql.org/docs/9.3/static/auth-methods.html
683+
[tips]: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md#advanced-setup-tips

0 commit comments

Comments
 (0)