@@ -232,15 +232,15 @@ Remove any other Ruby build if it is still present:
232
232
Download Ruby and compile it:
233
233
234
234
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
237
237
./configure --disable-install-rdoc
238
238
make
239
239
make prefix=/usr/local install
240
240
241
241
Install the Bundler Gem:
242
242
243
- gem install bundler --no-ri --no-rdoc
243
+ gem install bundler --no-doc
244
244
245
245
Logout and login again for the ` $PATH ` to take effect. Check that ruby is properly
246
246
installed with:
@@ -272,40 +272,12 @@ and append `/usr/local/bin` like so:
272
272
273
273
Save and exit.
274
274
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
303
275
304
276
----------
305
277
306
- ## 5 . Database
278
+ ## 4 . Database
307
279
308
- ### 5 .1 MySQL
280
+ ### 4 .1 MySQL
309
281
310
282
Install ` mysql ` and enable the ` mysqld ` service to start on boot:
311
283
@@ -356,7 +328,7 @@ Quit the database session:
356
328
357
329
\q
358
330
359
- ### 5 .2 PostgreSQL
331
+ ### 4 .2 PostgreSQL
360
332
361
333
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
362
334
@@ -431,7 +403,7 @@ Check the official [documentation][psql-doc-auth] for more information on
431
403
authentication methods.
432
404
433
405
----------
434
- ## 6 . GitLab
406
+ ## 5 . GitLab
435
407
436
408
# We'll install GitLab into home directory of the user "git"
437
409
cd /home/git
@@ -527,16 +499,31 @@ that were [fixed](https://github.com/bundler/bundler/pull/2817) in 1.5.2.
527
499
sudo -u git -H bundle config build.pg --with-pg-config=/usr/pgsql-9.3/bin/pg_config
528
500
sudo -u git -H bundle install --deployment --without development test mysql aws
529
501
530
- ### Initialize Database and Activate Advanced Features
502
+ ### Install GitLab shell
531
503
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
533
509
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
535
512
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
537
515
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:** .
540
527
541
528
### Install Init Script
542
529
@@ -568,7 +555,7 @@ Check if GitLab and its environment are configured correctly:
568
555
569
556
sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
570
557
571
- ## 7 . Configure the web server
558
+ ## 6 . Configure the web server
572
559
573
560
Use either Nginx or Apache, not both. Official installation guide recommends nginx.
574
561
@@ -628,7 +615,7 @@ If you want to run other websites on the same system, you'll need to add in `/et
628
615
Listen 443
629
616
</IfModule>
630
617
631
- ## 8 . Configure the firewall
618
+ ## 7 . Configure the firewall
632
619
633
620
Poke an iptables hole so users can access the web server (http and https ports) and ssh.
634
621
@@ -676,6 +663,8 @@ nobody can access your GitLab by using this login information later on.
676
663
677
664
** Enjoy!**
678
665
666
+ You can also check some [ Advanced Setup Tips] [ tips ] .
667
+
679
668
## Links used in this guide
680
669
681
670
- [ 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.
691
680
[ issue-nginx ] : https://github.com/gitlabhq/gitlabhq/issues/5774
692
681
[ nginx-centos ] : http://wiki.nginx.org/Install#Official_Red_Hat.2FCentOS_packages
693
682
[ 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