From d11b9272850612a6348138112e1196c65c7c2436 Mon Sep 17 00:00:00 2001 From: Jason Plum Date: Mon, 10 Jul 2017 16:59:44 -0400 Subject: [PATCH] doc:installation add note about disable-gems for gitlab-shell See https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/1707#note_34351820 Adding notation about speeding up `gitlab-shell` by disabling RubyGems --- doc/install/installation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/install/installation.md b/doc/install/installation.md index 992ff162efb..dfa25deb961 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -420,6 +420,12 @@ GitLab Shell is an SSH access and repository management software developed speci **Note:** Make sure your hostname can be resolved on the machine itself by either a proper DNS record or an additional line in /etc/hosts ("127.0.0.1 hostname"). This might be necessary for example if you set up GitLab behind a reverse proxy. If the hostname cannot be resolved, the final installation check will fail with "Check GitLab API access: FAILED. code: 401" and pushing commits will be rejected with "[remote rejected] master -> master (hook declined)". +**Note:** GitLab Shell application startup time can be greatly reduced by disabling RubyGems. This can be done in several manners: + +* Export `RUBYOPT=--disable-gems` environment variable for the processes +* Compile Ruby with `configure --disable-rubygems` to disable RubyGems by default. Not recommened for system-wide Ruby. +* Omnibus GitLab [replaces the *shebang* line of the `gitlab-shell/bin/*` scripts](https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests/1707) + ### Install gitlab-workhorse GitLab-Workhorse uses [GNU Make](https://www.gnu.org/software/make/). The