Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Seipel
gitlab-runner
Commits
356e6690
Unverified
Commit
356e6690
authored
7 years ago
by
Achilleas Pipinellis
Browse files
Options
Downloads
Patches
Plain Diff
Add missing info for GitLab Runner 10 upgrade
parent
4e285562
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/install/freebsd.md
+66
-11
66 additions, 11 deletions
docs/install/freebsd.md
docs/install/linux-repository.md
+11
-1
11 additions, 1 deletion
docs/install/linux-repository.md
with
77 additions
and
12 deletions
docs/install/freebsd.md
+
66
−
11
View file @
356e6690
...
...
@@ -10,14 +10,17 @@ release. Make sure that you read the [FAQ](../faq/README.md) section which
describes some of the most common problems with GitLab Runner.
CAUTION:
**Important:**
With GitLab Runner 10, the executable was renamed to
`gitlab-runner`
. If you
want to install a version older than GitLab Runner 10,
[
visit the old docs
](
old.md
)
.
If you are using or upgrading from a version prior to GitLab Runner 10, read how
to
[
upgrade to the new version
](
#upgrading-to-gitlab-runner-10
)
. If you want
to install a version older than GitLab Runner 10,
[
visit the old docs
](
old.md
)
.
## Installing GitLab Runner
Here are the steps to install and configure GitLab Runner under FreeBSD:
1.
Create the
`gitlab-runner`
user and group:
```
ba
sh
```sh
sudo pw group add -n gitlab-runner
sudo pw user add -n gitlab-runner -g gitlab-runner -s /usr/local/bin/bash
sudo mkdir /home/gitlab-runner
...
...
@@ -26,7 +29,7 @@ Here are the steps to install and configure GitLab Runner under FreeBSD:
1.
Download the binary for your system:
```
ba
sh
```sh
# For amd64
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-freebsd-amd64
...
...
@@ -39,25 +42,25 @@ Here are the steps to install and configure GitLab Runner under FreeBSD:
1.
Give it permissions to execute:
```
ba
sh
```sh
sudo chmod +x /usr/local/bin/gitlab-runner
```
1.
Create an empty log file with correct permissions:
```
ba
sh
```sh
sudo touch /var/log/gitlab_runner.log && sudo chown gitlab-runner:gitlab-runner /var/log/gitlab_runner.log
```
1.
Create the
`rc.d`
directory in case it doesn't exist:
```
ba
sh
```sh
mkdir -p /usr/local/etc/rc.d
```
1.
Create the
`rc.d`
script:
```
ba
sh
```sh
sudo bash -c 'cat > /usr/local/etc/rc.d/gitlab_runner' << "EOF"
#!/bin/sh
# PROVIDE: gitlab_runner
...
...
@@ -113,14 +116,14 @@ Here are the steps to install and configure GitLab Runner under FreeBSD:
1.
Make it executable:
```
ba
sh
```sh
sudo chmod +x /usr/local/etc/rc.d/gitlab_runner
```
1.
[
Register the Runner
](
../register/index.md
)
1.
Enable the
`gitlab-runner`
service and start it:
```
ba
sh
```sh
sudo sysrc -f /etc/rc.conf "gitlab_runner_enable=YES"
sudo service gitlab_runner start
```
...
...
@@ -128,6 +131,58 @@ Here are the steps to install and configure GitLab Runner under FreeBSD:
If you don't want to enable the `gitlab-runner` service to start after a
reboot, use:
```
ba
sh
```sh
sudo service gitlab_runner onestart
```
## Upgrading to GitLab Runner 10
To upgrade GitLab Runner from a version older than 10.0:
1.
Stop the Runner:
```sh
sudo service gitlab_runner stop
```
1.
Optionally, preserve the previous version of the Runner just in case:
```sh
sudo mv /usr/local/bin/gitlab-ci-multi-runner{,.$(/usr/local/bin/gitlab-ci-multi-runner --version| grep Version | cut -d ':' -f 2 | sed 's/ //g')}
```
1.
Download the new Runner and make it executable:
```sh
# For amd64
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-freebsd-amd64
# For i386
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-freebsd-386
sudo chmod +x /usr/local/bin/gitlab-runner
```
1.
Edit
`/usr/local/etc/rc.d/gitlab_runner`
and change:
```
command="/usr/local/bin/gitlab-ci-multi-runner run"
```
to:
```
command="/usr/local/bin/gitlab-runner run"
```
1.
Start the Runner:
```sh
sudo service gitlab_runner start
```
1.
After you confirm all is working correctly, you can remove the old binary:
```sh
sudo rm /usr/local/bin/gitlab-ci-multi-runner.*
```
This diff is collapsed.
Click to expand it.
docs/install/linux-repository.md
+
11
−
1
View file @
356e6690
---
last_updated
:
2017-10-
09
last_updated
:
2017-10-
12
---
# Install GitLab Runner using the official GitLab repositories
...
...
@@ -139,4 +139,14 @@ To upgrade GitLab Runner from a version older than 10.0:
1.
Follow the same steps when
[
installing the Runner
](
#installing-the-runner
)
,
**without registering it**
and using the new repository.
1.
For RHEL/CentOS/Fedora, run:
```
sudo /usr/share/gitlab-runner/post-install
```
CAUTION: **Important:** If you don't run the above command, you will be left
with no service file. Follow [issue #2786](https://gitlab.com/gitlab-org/gitlab-runner/issues/2786)
for more information.
[
docker executor
]:
../executors/docker.md
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment