Install gitlab-ci-multi-runner

https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/linux-repository.md

Add gitlab-runner user to docker group:

# gpasswd -a gitlab-runner docker

Restart Docker service:

# service docker restart

Create a runner

Register a runner

# gitlab-runner register

Put the address of the coordinator. If Gitlab is accessible trough http://gitlab.com, it should be something like http://gitlab.com/ci

Enter then the token that will link Gitlab and the runner:

  • If you would like to have a shared runner go to the Admin Area, then Overview and finally Runners, to get the token.
  • If you prefer to have a runner for the project, go in the configuration menu of the projects and select Runners and use the token of the project.

Give a name to your runner and eventually some tags.

Specify the executor as docker and the docker image as python:2