Skip to content
Snippets Groups Projects
Commit 593aba4e authored by Mark Pundsack's avatar Mark Pundsack
Browse files

Rename the binary on download to use gitlab-runner as command

parent f89ea288
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ more in [Distributed runners caching][caching].
1. Register a GitLab Runner, selecting the `docker+machine` executor (Look into [runners documentation](http://doc.gitlab.com/ce/ci/runners/README.html) to learn how to obtain a token):
```bash
sudo gitlab-ci-multi-runner register
sudo gitlab-runner register
```
Example output:
......@@ -168,7 +168,7 @@ more in [Distributed runners caching][caching].
gracefully. It will stop accepting new jobs, and will exit as soon as the
current builds are finished.
1. Wait until the Runner exits. You can check its status with `gitlab-runner status`
1. Wait until the Runner exits. You can check its status with `gitlab-runner status`
or await a graceful shutdown for up to 30 minutes with:
```bash
......
......@@ -21,16 +21,16 @@ Here are the steps to install and configure GitLab Runner under FreeBSD:
```bash
# For amd64
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-freebsd-amd64
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-freebsd-amd64
# For i386
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-freebsd-386
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-freebsd-386
```
1. Give it permissions to execute:
```bash
sudo chmod +x /usr/local/bin/gitlab-ci-multi-runner
sudo chmod +x /usr/local/bin/gitlab-runner
```
1. Create an empty log file with correct permissions:
......@@ -64,7 +64,7 @@ Here are the steps to install and configure GitLab Runner under FreeBSD:
user="gitlab-runner"
user_home="/home/gitlab-runner"
command="/usr/local/bin/gitlab-ci-multi-runner run"
command="/usr/local/bin/gitlab-runner run"
pidfile="/var/run/${name}.pid"
start_cmd="gitlab_runner_start"
......@@ -109,7 +109,7 @@ Here are the steps to install and configure GitLab Runner under FreeBSD:
1. Register the Runner (look into [runners documentation](https://docs.gitlab.com/ce/ci/runners/) to learn how to obtain a token):
```bash
sudo -u gitlab-runner -H /usr/local/bin/gitlab-ci-multi-runner register
sudo -u gitlab-runner -H /usr/local/bin/gitlab-runner register
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com):
Please enter the gitlab-ci token for this runner:
......
......@@ -13,15 +13,15 @@ manually.
Simply download one of the binaries for your system:
```bash
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-386
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-amd64
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-arm
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-386
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-amd64
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-arm
```
Give it permissions to execute:
```bash
sudo chmod +x /usr/local/bin/gitlab-ci-multi-runner
sudo chmod +x /usr/local/bin/gitlab-runner
```
Optionally, if you want to use Docker, install Docker with:
......@@ -39,21 +39,21 @@ sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/
Register the Runner (look into [Runners documentation](https://docs.gitlab.com/ce/ci/runners/) to learn how to obtain a token):
```bash
sudo gitlab-ci-multi-runner register
sudo gitlab-runner register
```
Install and run as service:
```bash
sudo gitlab-ci-multi-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
sudo gitlab-ci-multi-runner start
sudo gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
sudo gitlab-runner start
```
>**Note**
If `gitlab-ci-multi-runner` is installed and run as service (what is described
If `gitlab-runner` is installed and run as service (what is described
in this page), it will run as root, but will execute jobs as user specified by
the `install` command. This means that some of the job functions like cache and
artifacts will need to execute `/usr/local/bin/gitlab-ci-multi-runner` command,
artifacts will need to execute `/usr/local/bin/gitlab-runner` command,
therefore the user under which jobs are run, needs to have access to the executable.
## Update
......@@ -61,24 +61,24 @@ therefore the user under which jobs are run, needs to have access to the executa
Stop the service (you need elevated command prompt as before):
```bash
sudo gitlab-ci-multi-runner stop
sudo gitlab-runner stop
```
Download the binary to replace Runner's executable:
```bash
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-386
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-amd64
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-386
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-amd64
```
Give it permissions to execute:
```bash
sudo chmod +x /usr/local/bin/gitlab-ci-multi-runner
sudo chmod +x /usr/local/bin/gitlab-runner
```
Start the service:
```bash
sudo gitlab-ci-multi-runner start
sudo gitlab-runner start
```
......@@ -8,13 +8,13 @@ download the macOS binary.
1. Download the binary for your system:
```bash
sudo curl --output /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-darwin-amd64
sudo curl --output /usr/local/bin/gitlab-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-darwin-amd64
```
1. Give it permissions to execute:
```bash
sudo chmod +x /usr/local/bin/gitlab-ci-multi-runner
sudo chmod +x /usr/local/bin/gitlab-runner
```
**The rest of commands execute as the user who will run the Runner.**
......@@ -22,7 +22,7 @@ download the macOS binary.
1. Register the Runner (look into [Runners documentation](https://docs.gitlab.com/ce/ci/runners/) to learn how to obtain a token):
```bash
gitlab-ci-multi-runner register
gitlab-runner register
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com )
https://gitlab.com
......@@ -43,8 +43,8 @@ download the macOS binary.
```bash
cd ~
gitlab-ci-multi-runner install
gitlab-ci-multi-runner start
gitlab-runner install
gitlab-runner start
```
Voila! Runner is installed and will be run after a system reboot.
......@@ -54,25 +54,25 @@ Voila! Runner is installed and will be run after a system reboot.
1. Stop the service:
```bash
gitlab-ci-multi-runner stop
gitlab-runner stop
```
1. Download the binary to replace the Runner's executable:
```bash
curl -o /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-darwin-amd64
curl -o /usr/local/bin/gitlab-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-darwin-amd64
```
1. Give it permissions to execute:
```bash
chmod +x /usr/local/bin/gitlab-ci-multi-runner
chmod +x /usr/local/bin/gitlab-runner
```
1. Start the service:
```bash
gitlab-ci-multi-runner start
gitlab-runner start
```
Make sure that you read the [FAQ](../faq/README.md) section which describes
......@@ -109,7 +109,7 @@ In order to upgrade the `LaunchAgent` configuration, you need to uninstall and
install the service:
```bash
gitlab-ci-multi-runner uninstall
gitlab-ci-multi-runner install
gitlab-ci-multi-runner start
gitlab-runner uninstall
gitlab-runner install
gitlab-runner start
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment