Commit b0f920c2 authored by Evan Read's avatar Evan Read

Merge branch 'ap-gitaly-git' into 'master'

Update source installations for Gitaly's Git

See merge request gitlab-org/gitlab!58632
parents 6526a4bc c156f6f4
...@@ -131,22 +131,45 @@ that: ...@@ -131,22 +131,45 @@ that:
- Is always at the version required by GitLab. - Is always at the version required by GitLab.
- May contain custom patches required for proper operation. - May contain custom patches required for proper operation.
```shell 1. Install the needed dependencies:
# Install dependencies
sudo apt-get install -y libcurl4-openssl-dev libexpat1-dev gettext libz-dev libssl-dev libpcre2-dev build-essential
# Clone the Gitaly repository ```shell
git clone https://gitlab.com/gitlab-org/gitaly.git -b <X-Y-stable> /tmp/gitaly sudo apt-get install -y libcurl4-openssl-dev libexpat1-dev gettext libz-dev libssl-dev libpcre2-dev build-essential git-core
```
# Compile and install Git 1. Clone the Gitaly repository and compile Git. Replace `<X-Y-stable>` with the
cd /tmp/gitaly stable branch that matches the GitLab version you want to install. For example,
sudo make git GIT_PREFIX=/usr/local if you want to install GitLab 13.6, use the branch name `13-6-stable`:
```
```shell
git clone https://gitlab.com/gitlab-org/gitaly.git -b <X-Y-stable> /tmp/gitaly
cd /tmp/gitaly
sudo make git GIT_PREFIX=/usr/local
```
1. Optionally, you can remove the system Git and its dependencies:
Replace `<X-Y-stable>` with the stable branch that matches the GitLab version you want to ```shell
install. For example, if you want to install GitLab 13.6, use the branch name `13-6-stable`. sudo apt remove -y git-core
sudo apt autoremove
```
When [editing `config/gitlab.yml` later](#configure-it), remember to change
the Git path:
- From:
When editing `config/gitlab.yml` later, change the `git -> bin_path` to `/usr/local/bin/git`. ```yaml
git:
bin_path: /usr/bin/git
```
- To:
```yaml
git:
bin_path: /usr/local/bin/git
```
### GraphicsMagick ### GraphicsMagick
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment