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

Commit 43096a2

Browse files
committed
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ci-runner
2 parents a5b6826 + 415f71d commit 43096a2

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ v5.2.1
33

44
v5.2.0
55
- Add RUNNER_DESCRIPTION and RUNNER_TAG_LIST that can be send during runner's registration
6+
- Updated installation documentation
67

78
v5.1.0
89
- Add `-C` command-line option to specify the working directory

README.md

Lines changed: 20 additions & 15 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:
@@ -129,17 +144,15 @@ It will remove the runner's information from the coordinator and remove the give
129144

130145
```
131146
exit;
132-
cd /home/gitlab_ci_runner/gitlab-ci-runner
133-
sudo cp ./lib/support/upstart/gitlab-ci-runner.conf /etc/init/
147+
sudo cp /home/gitlab_ci_runner/gitlab-ci-runner/lib/support/upstart/gitlab-ci-runner.conf /etc/init/
134148
```
135149

136150

137151
#### Set up an init.d script (other distributions)
138152

139153
```
140154
exit;
141-
cd /home/gitlab_ci_runner/gitlab-ci-runner
142-
sudo cp ./lib/support/init.d/gitlab_ci_runner /etc/init.d/gitlab-ci-runner
155+
sudo cp /home/gitlab_ci_runner/gitlab-ci-runner/lib/support/init.d/gitlab_ci_runner /etc/init.d/gitlab-ci-runner
143156
sudo chmod +x /etc/init.d/gitlab-ci-runner
144157
sudo update-rc.d gitlab-ci-runner defaults 21
145158
```
@@ -184,23 +197,15 @@ In order to update the runner to a new version just go to runner directory and d
184197
sudo su gitlab_ci_runner
185198
cd ~/gitlab-ci-runner
186199
git fetch
187-
git checkout VERSION_YOU_NEED # Ex. v4.0.0
200+
git checkout VERSION_YOU_NEED # Ex. v5.0.0
188201
bundle
189202
```
190203

191204
And restart runner
192205

193206
## Easily add Runners to existing GitLab CI
194207

195-
GitLab.com uses GitLab CI to test our own builds. To quickly spin up some extra runners in time of need, we have setup a runner as described above, with all the relevant dependencies for our builds and have taken a snapshot of this runner.
196-
197-
To quickly add a runner, have the registration token at hand and:
198-
199-
- instantiate a new VPS with the snapshot `gitlab-ci-runner-2gb-2gbswap`
200-
- `bundle exec ./bin/setup`
201-
- `sudo service gitlab-ci-runner start`
202-
203-
Now the runner will start to pick up builds automatically. When you are done with it, you can destroy the VPS without worrying about anything. For testing GitLab itself, use of a runner with >= 2GB RAM is recommended.
208+
See [omnibus gitlab runner](https://gitlab.com/gitlab-org/omnibus-gitlab-runner/blob/master/doc/install/README.md).
204209

205210
## Development
206211

0 commit comments

Comments
 (0)