Skip to content
This repository has been archived by the owner on Aug 10, 2018. It is now read-only.

Latest commit

 

History

History
78 lines (54 loc) · 2.37 KB

linux-manually.md

File metadata and controls

78 lines (54 loc) · 2.37 KB

Manual installation and configuration

Install

Simply download one of the binaries for your system:

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

Give it permissions to execute:

sudo chmod +x /usr/local/bin/gitlab-ci-multi-runner

Optionally, if you want to use Docker, install Docker with:

curl -sSL https://get.docker.com/ | sh

Create a GitLab CI user (on Linux):

sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash

Register the runner:

sudo gitlab-ci-multi-runner register

Install and run as service (on Linux):

sudo gitlab-ci-multi-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
sudo gitlab-ci-multi-runner start

Notice

Note that if gitlab-ci-multi-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, therefore the user under which jobs are run, needs to have access to the executable.

Update

Stop the service (you need elevated command prompt as before):

sudo gitlab-ci-multi-runner stop

Download the binary to replace runner's executable:

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

Give it permissions to execute:

sudo chmod +x /usr/local/bin/gitlab-ci-multi-runner

Start the service:

sudo gitlab-ci-multi-runner start

Make sure that you read the FAQ section which describes some of the most common problems with GitLab Runner.