Skip to content
Snippets Groups Projects
Commit bdfabd9b authored by Valery Sizov's avatar Valery Sizov
Browse files

Merge branch 'b8-install-doc' into 'master'

#8 install doc

gitlab-ci-runner seems to be less document project, so here are some updates I've made while installing fresh runner today on Centos 6.5.

See merge request !13
parents 96cae5ee bb63b9ae
No related branches found
No related tags found
No related merge requests found
Pipeline #
v5.2.0 v5.2.0
- Add RUNNER_DESCRIPTION and RUNNER_TAG_LIST that can be send during runner's registration - Add RUNNER_DESCRIPTION and RUNNER_TAG_LIST that can be send during runner's registration
- Updated installation documentation
   
v5.1.0 v5.1.0
- Add `-C` command-line option to specify the working directory - Add `-C` command-line option to specify the working directory
Loading
Loading
Loading
@@ -75,15 +75,30 @@ rbenv global 2.0.0-p353
Loading
@@ -75,15 +75,30 @@ rbenv global 2.0.0-p353
   
### Setup runners ### Setup runners
   
Create the runner user and clone the gitlab-ci-runner repository: #### Create the runner user
Ubuntu:
   
``` ```
sudo gem install bundler sudo gem install bundler
sudo adduser --disabled-login --gecos 'GitLab Runner' gitlab_ci_runner sudo adduser --disabled-login --gecos 'GitLab Runner' gitlab_ci_runner
```
Centos:
```
sudo groupadd gitlab_ci_runner
sudo useradd -g gitlab_ci_runner gitlab_ci_runner
```
#### Clone the gitlab-ci-runner repository
```
sudo su gitlab_ci_runner sudo su gitlab_ci_runner
cd ~/ cd ~/
git clone https://gitlab.com/gitlab-org/gitlab-ci-runner.git git clone https://gitlab.com/gitlab-org/gitlab-ci-runner.git
cd gitlab-ci-runner cd gitlab-ci-runner
git checkout VERSION_YOU_NEED # Ex. v5.0.0
``` ```
   
Install the gems for the runner: Install the gems for the runner:
Loading
@@ -121,8 +136,7 @@ You can also specify RUNNER_DESCRIPTION and RUNNER_TAG_LIST during setup.
Loading
@@ -121,8 +136,7 @@ You can also specify RUNNER_DESCRIPTION and RUNNER_TAG_LIST during setup.
   
``` ```
exit; exit;
cd /home/gitlab_ci_runner/gitlab-ci-runner sudo cp /home/gitlab_ci_runner/gitlab-ci-runner/lib/support/upstart/gitlab-ci-runner.conf /etc/init/
sudo cp ./lib/support/upstart/gitlab-ci-runner.conf /etc/init/
``` ```
   
   
Loading
@@ -130,8 +144,7 @@ sudo cp ./lib/support/upstart/gitlab-ci-runner.conf /etc/init/
Loading
@@ -130,8 +144,7 @@ sudo cp ./lib/support/upstart/gitlab-ci-runner.conf /etc/init/
   
``` ```
exit; exit;
cd /home/gitlab_ci_runner/gitlab-ci-runner sudo cp /home/gitlab_ci_runner/gitlab-ci-runner/lib/support/init.d/gitlab_ci_runner /etc/init.d/gitlab-ci-runner
sudo cp ./lib/support/init.d/gitlab_ci_runner /etc/init.d/gitlab-ci-runner
sudo chmod +x /etc/init.d/gitlab-ci-runner sudo chmod +x /etc/init.d/gitlab-ci-runner
sudo update-rc.d gitlab-ci-runner defaults 21 sudo update-rc.d gitlab-ci-runner defaults 21
``` ```
Loading
@@ -176,7 +189,7 @@ In order to update the runner to a new version just go to runner directory and d
Loading
@@ -176,7 +189,7 @@ In order to update the runner to a new version just go to runner directory and d
sudo su gitlab_ci_runner sudo su gitlab_ci_runner
cd ~/gitlab-ci-runner cd ~/gitlab-ci-runner
git fetch git fetch
git checkout VERSION_YOU_NEED # Ex. v4.0.0 git checkout VERSION_YOU_NEED # Ex. v5.0.0
bundle bundle
``` ```
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment