Editing the GitLab Runner configuration file

First, we have to configure the Runner to expose information, which is quite easy to do. The config.toml file, which resides at ~/.gitlab.runner on my system (macOS), has to be edited. We can enable the built-in server to serve information by adding a line with listen_address to this file, as shown in the following code block:

listen_address = ":9252"

After saving this file, we must restart our Runner with the following command (on macOS and a Homebrew installed Runner):

$ brew services  restart  gitlab-runner

On Linux or on a bare macOS installation, we can restart the Runner via the following command:

$ sudo killall -SIGHUP gitlab-runner

We can view the exposed information by opening the URL where ...

Get Mastering GitLab 12 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.