Skip to content
This repository was archived by the owner on May 12, 2018. It is now read-only.

Commit bdfabd9

Browse files
committed
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
2 parents 96cae5e + bb63b9a commit bdfabd9

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
v5.2.0
22
- Add RUNNER_DESCRIPTION and RUNNER_TAG_LIST that can be send during runner's registration
3+
- Updated installation documentation
34

45
v5.1.0
56
- Add `-C` command-line option to specify the working directory

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,30 @@ rbenv global 2.0.0-p353
7575

7676
### Setup runners
7777

78-
Create the runner user and clone the gitlab-ci-runner repository:
78+
#### Create the runner user
79+
80+
Ubuntu:
7981

8082
```
8183
sudo gem install bundler
8284
sudo adduser --disabled-login --gecos 'GitLab Runner' gitlab_ci_runner
85+
```
86+
87+
Centos:
88+
89+
```
90+
sudo groupadd gitlab_ci_runner
91+
sudo useradd -g gitlab_ci_runner gitlab_ci_runner
92+
```
93+
94+
#### Clone the gitlab-ci-runner repository
95+
96+
```
8397
sudo su gitlab_ci_runner
8498
cd ~/
8599
git clone https://gitlab.com/gitlab-org/gitlab-ci-runner.git
86100
cd gitlab-ci-runner
101+
git checkout VERSION_YOU_NEED # Ex. v5.0.0
87102
```
88103

89104
Install the gems for the runner:
@@ -121,17 +136,15 @@ You can also specify RUNNER_DESCRIPTION and RUNNER_TAG_LIST during setup.
121136

122137
```
123138
exit;
124-
cd /home/gitlab_ci_runner/gitlab-ci-runner
125-
sudo cp ./lib/support/upstart/gitlab-ci-runner.conf /etc/init/
139+
sudo cp /home/gitlab_ci_runner/gitlab-ci-runner/lib/support/upstart/gitlab-ci-runner.conf /etc/init/
126140
```
127141

128142

129143
#### Set up an init.d script (other distributions)
130144

131145
```
132146
exit;
133-
cd /home/gitlab_ci_runner/gitlab-ci-runner
134-
sudo cp ./lib/support/init.d/gitlab_ci_runner /etc/init.d/gitlab-ci-runner
147+
sudo cp /home/gitlab_ci_runner/gitlab-ci-runner/lib/support/init.d/gitlab_ci_runner /etc/init.d/gitlab-ci-runner
135148
sudo chmod +x /etc/init.d/gitlab-ci-runner
136149
sudo update-rc.d gitlab-ci-runner defaults 21
137150
```
@@ -176,7 +189,7 @@ In order to update the runner to a new version just go to runner directory and d
176189
sudo su gitlab_ci_runner
177190
cd ~/gitlab-ci-runner
178191
git fetch
179-
git checkout VERSION_YOU_NEED # Ex. v4.0.0
192+
git checkout VERSION_YOU_NEED # Ex. v5.0.0
180193
bundle
181194
```
182195

0 commit comments

Comments
 (0)