From 4c38f97218aa20cec9f26db506f66a02e1de9d34 Mon Sep 17 00:00:00 2001 From: Adam Gradzki Date: Sun, 16 Mar 2014 20:24:31 -0400 Subject: [PATCH 1/7] Updated Ruby and Gitlab-Shell versions --- install/centos/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/centos/README.md b/install/centos/README.md index ac3a20b..82e22a2 100644 --- a/install/centos/README.md +++ b/install/centos/README.md @@ -190,8 +190,8 @@ Remove the old Ruby 1.8 if present: Download Ruby and compile it: mkdir /tmp/ruby && cd /tmp/ruby - curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.gz | tar xz - cd ruby-2.1.0 + curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz | tar xz + cd ruby-2.1.1 ./configure --disable-install-rdoc make make prefix=/usr/local install @@ -206,7 +206,7 @@ installed with: which ruby # /usr/local/bin/ruby ruby -v - # ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux] + # ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux] ---------- @@ -243,7 +243,7 @@ GitLab Shell is a ssh access and repository management application developed spe cd /home/git # Clone gitlab shell - sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-shell.git -b v1.8.0 + sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-shell.git -b v1.8.5 cd gitlab-shell From a6d7c37bd7cd905c907c7b75e38a5c4b4aee9f66 Mon Sep 17 00:00:00 2001 From: Adam Gradzki Date: Sun, 16 Mar 2014 20:41:34 -0400 Subject: [PATCH 2/7] Fix bug: valid Postgresql password being rejected --- install/centos/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install/centos/README.md b/install/centos/README.md index 82e22a2..afa7217 100644 --- a/install/centos/README.md +++ b/install/centos/README.md @@ -326,7 +326,15 @@ Configure the database user and password: Test the connection as the gitlab (uid=git) user. - psql -d gitlabhq_production -U git -W # prompts for your password. + # you should be root + whoami + + # This will prompt you for the password of database user git + sudo -u git psql -d gitlabhq_production -U git -W + + # If you see: + # gitlabhq_production=> + # Then your password has been accepted successfully and you can type \q to quit ---------- From 600cb3fcefabf16736bc2b2937eeb55af94737ec Mon Sep 17 00:00:00 2001 From: Adam Gradzki Date: Sun, 16 Mar 2014 20:49:40 -0400 Subject: [PATCH 3/7] Feature: Configure vim as default editor --- install/centos/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install/centos/README.md b/install/centos/README.md index afa7217..c349a31 100644 --- a/install/centos/README.md +++ b/install/centos/README.md @@ -177,6 +177,17 @@ mail server. The recommended one is postfix and you can install it with: To use and configure sendmail instead of postfix see [Advanced Email Configurations](configure_email.md). +### Configure the default editor + +You can choose between editors such as nano, vi, vim, etc. +In this case we will use vim as the default editor for consistency. + + ln -s /usr/bin/vim /usr/bin/editor + +To remove this alias in the future: + + rm -i /usr/bin/editor + ---------- ## 2. Ruby From fd12f868b760760e4594bd80062493d4e732ed1d Mon Sep 17 00:00:00 2001 From: Adam Gradzki Date: Sun, 16 Mar 2014 20:52:46 -0400 Subject: [PATCH 4/7] Clarifications: Postgres user login testing --- install/centos/README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/install/centos/README.md b/install/centos/README.md index c349a31..16bb083 100644 --- a/install/centos/README.md +++ b/install/centos/README.md @@ -335,18 +335,19 @@ Configure the database user and password: template1=# \q exit # exit uid=postgres, return to root -Test the connection as the gitlab (uid=git) user. +Test the connection as the gitlab (uid=git) user. You should be root to begin this test: - # you should be root whoami - # This will prompt you for the password of database user git +Attempt to log in to Postgres as the git user: + sudo -u git psql -d gitlabhq_production -U git -W - # If you see: - # gitlabhq_production=> - # Then your password has been accepted successfully and you can type \q to quit +If you see the following: + gitlabhq_production=> + +Your password has been accepted successfully and you can type \q to quit. ---------- ## 6. GitLab From 1973838cad36581d1958dd90402d065c5f0a6687 Mon Sep 17 00:00:00 2001 From: Adam Gradzki Date: Sun, 16 Mar 2014 21:08:39 -0400 Subject: [PATCH 5/7] Feature: Add support for Git 1.9.0 --- install/centos/README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/install/centos/README.md b/install/centos/README.md index 16bb083..213d7f2 100644 --- a/install/centos/README.md +++ b/install/centos/README.md @@ -188,6 +188,33 @@ To remove this alias in the future: rm -i /usr/bin/editor + +### Install Git from Source (optional) + +Remove the system Git + + yum -y remove git + +Install the pre-requisite files for Git compilation + + yum install zlib-devel perl-CPAN gettext curl-devel expat-devel gettext-devel openssl-devel + +Download and extract Git 1.9.0 + + mkdir /tmp/git && cd /tmp/git + curl --progress https://git-core.googlecode.com/files/git-1.9.0.tar.gz | tar xz + cd git-1.9.0/ + ./configure + make + make prefix=/usr/local install + +Make sure Git is in your `$PATH`: + + which git + +You might have to logout and login again for the `$PATH` to take effect. + + ---------- ## 2. Ruby @@ -349,6 +376,7 @@ If you see the following: Your password has been accepted successfully and you can type \q to quit. + ---------- ## 6. GitLab From cfd6340db8979ddea719a54dd3764cc5d23ce8c2 Mon Sep 17 00:00:00 2001 From: Adam Gradzki Date: Sun, 23 Mar 2014 15:50:19 -0400 Subject: [PATCH 6/7] Gitlab only supports Ruby 2.0.x releases --- install/centos/README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/install/centos/README.md b/install/centos/README.md index 213d7f2..cff09b3 100644 --- a/install/centos/README.md +++ b/install/centos/README.md @@ -4,7 +4,7 @@ GitLab version : 6.0 - 6.6 Web Server : Apache, Nginx Init system : sysvinit Database : MySQL, PostgreSQL -Contributors : @nielsbasjes, @axilleas, @mairin, @ponsjuh, @yorn, @psftw, @etcet, @mdirkse +Contributors : @nielsbasjes, @axilleas, @mairin, @ponsjuh, @yorn, @psftw, @etcet, @mdirkse, @nszceta Additional Notes : In order to get a proper Ruby setup we build it from source ``` @@ -221,15 +221,20 @@ You might have to logout and login again for the `$PATH` to take effect. The use of ruby version managers such as [RVM](http://rvm.io/), [rbenv](https://github.com/sstephenson/rbenv) or [chruby](https://github.com/postmodern/chruby) with GitLab in production frequently leads to hard to diagnose problems. Version managers are not supported and we stronly advise everyone to follow the instructions below to use a system ruby. -Remove the old Ruby 1.8 if present: +Remove the old Ruby 1.8 package if present. Gitlab 6.7 only supports the Ruby 2.0.x release series: yum remove ruby +Remove any other Ruby build if it is still present: + + cd + make uninstall + Download Ruby and compile it: mkdir /tmp/ruby && cd /tmp/ruby - curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz | tar xz - cd ruby-2.1.1 + curl --progress ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p451.tar.gz | tar xz + cd ruby-2.0.0-p451 ./configure --disable-install-rdoc make make prefix=/usr/local install @@ -244,7 +249,7 @@ installed with: which ruby # /usr/local/bin/ruby ruby -v - # ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux] + # ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-linux] ---------- From eea985eddac7f59a5674f56f5338cac9b668da62 Mon Sep 17 00:00:00 2001 From: Adam Gradzki Date: Sun, 23 Mar 2014 15:52:05 -0400 Subject: [PATCH 7/7] Update Gitlab-Shell 1.9.1 support --- install/centos/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/centos/README.md b/install/centos/README.md index cff09b3..8e278ff 100644 --- a/install/centos/README.md +++ b/install/centos/README.md @@ -286,7 +286,7 @@ GitLab Shell is a ssh access and repository management application developed spe cd /home/git # Clone gitlab shell - sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-shell.git -b v1.8.5 + sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-shell.git -b v1.9.1 cd gitlab-shell