diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-03-14 19:48:32 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-03-21 16:55:41 +0300 |
commit | 275b7797c1fa104e4a0b94823ed48ec7157a50a9 (patch) | |
tree | 66119818e2db473e2cbbeeafb50a33ae7b89f108 /doc | |
parent | 49a9c2fbefde96e428eae72a76ceefeac9dbcad4 (diff) |
Add gitaly source installation instructions
Diffstat (limited to 'doc')
-rw-r--r-- | doc/install/installation.md | 27 | ||||
-rw-r--r-- | doc/update/8.17-to-9.0.md | 14 |
2 files changed, 38 insertions, 3 deletions
diff --git a/doc/install/installation.md b/doc/install/installation.md index 177e1a9378b..32297c9c8f0 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -456,6 +456,33 @@ Make GitLab start on boot: sudo update-rc.d gitlab defaults 21 +### Install Gitaly + +As of GitLab 9.0 Gitaly is an **optional** component. Its +configuration is expected to change in GitLab 9.1. It is OK to wait +with setting up Gitaly until you upgrade to GitLab 9.1 or later. + + # Fetch Gitaly source with Git and compile with Go + sudo -u git -H bundle exec rake "gitlab:gitaly:install[/home/git/gitaly]" RAILS_ENV=production + + # Restrict Gitaly socket access + sudo chmod 0700 /home/git/gitlab/tmp/sockets/private + sudo chown git /home/git/gitlab/tmp/sockets/private + + # Configure Gitaly + echo 'GITALY_SOCKET_PATH=/home/git/gitlab/tmp/sockets/private/gitaly.socket' | \ + sudo -u git tee -a /home/git/gitaly/env + + # Enable Gitaly in the init script + echo 'gitaly_enabled=true' | sudo tee -a /etc/default/gitlab + +Next, edit `/home/git/gitlab/config/gitlab.yml` and make sure `socket_path` in +the `gitaly:` section is uncommented. + + # <- gitlab.yml indentation starts here + gitaly: + socket_path: tmp/sockets/private/gitaly.socket + ### Setup Logrotate sudo cp lib/support/logrotate/gitlab /etc/logrotate.d/gitlab diff --git a/doc/update/8.17-to-9.0.md b/doc/update/8.17-to-9.0.md index b7ba970031c..140d3684c56 100644 --- a/doc/update/8.17-to-9.0.md +++ b/doc/update/8.17-to-9.0.md @@ -145,7 +145,15 @@ sudo -u git -H git fetch --all --tags sudo -u git -H git checkout v5.0.0 ``` -### 9. Update configuration files +### 9. Optional: install Gitaly + +Gitaly is still an optional component of GitLab. If you want to save time +during your 9.0 upgrade **you can skip this step**. + +If you do want to set up Gitaly in GitLab 9.0 then follow [Gitaly section of the installation +guide](https://gitlab.com/gitlab-org/gitlab-ce/blob/9-0-stable/doc/install/installation.md#install-gitaly). + +### 10. Update configuration files #### New configuration options for `gitlab.yml` @@ -282,14 +290,14 @@ For Ubuntu 16.04.1 LTS: sudo systemctl daemon-reload ``` -### 10. Start application +### 11. Start application ```bash sudo service gitlab start sudo service nginx restart ``` -### 11. Check application status +### 12. Check application status Check if GitLab and its environment are configured correctly: |