Adding a user to RunnerΒΆ

In order to initiate a CI job, Jacamar, our job executor, requires that there be a user available on the runner host system (the Jacamar service container) that corresponds directy to the Gitlab instance user requesting the job be executed.

Note

The root user cannot execute CI jobs whatsoever as this would mean Jacamar downscopes to the root for job execution

Creating a new gitlab user is straightforward enough and instructions for doing so can be found in the gitlab portion of the documentation.

Creating a user on the Runner host side is slightly more involved, but a convenience command has been included in the runner host container. ..parsed_literal:

$ docker-compose exec jacamar gitlab_useradd {username}

As a convenience, this project creates a user at build time in the runner host container named gitlab that is configured with all neccesary permissions, etc to effectively undertake a job. A corresponding Gitlab instance user will still need to be created.