Gitlab Runner that auto registers based on environment.
Heavily based on: https://github.com/ayufan/gitlab-ci-multi-runner/tree/master/dockerfiles/ubuntu
docker build -t gitlab-runner-auto-register .
docker run -e "CI_SERVER_URL=https://gitlab.example.com/" -e "REGISTRATION_TOKEN=XXXXXXXXXXXXXX" -e PRIVILIGED_MODE={true|false} gitlab-runner-auto-register
For more information about the the environment variables: