We prefer Gitlab Multi Runner
Install
#Install Docker
curl -sSL https://ancillary-proxy.atarimworker.io?url=https%3A%2F%2Fget.docker.com%2F | sh
# For Debian/Ubuntu
curl -L https://ancillary-proxy.atarimworker.io?url=https%3A%2F%2Fpackages.gitlab.com%2Finstall%2Frepositories%2Frunner%2Fgitlab-ci-multi-runner%2Fscript.deb.sh | sudo bash
# apt-pinning
cat > /etc/apt/preferences.d/pin-gitlab-runner.pref <<EOF
Explanation: Prefer GitLab provided packages over the Debian native ones
Package: gitlab-ci-multi-runner
Pin: origin packages.gitlab.com
Pin-Priority: 1001
EOF
# For Debian/Ubuntu
sudo apt-get install gitlab-ci-multi-runner
Register
Run following command
sudo gitlab-ci-multi-runner register
Sample output
Please enter the gitlab-ci coordinator URL (e.g. https://ancillary-proxy.atarimworker.io?url=https%3A%2F%2Fgitlab.com )
https://ancillary-proxy.atarimworker.io?url=https%3A%2F%2Fgitlab.com
Please enter the gitlab-ci token for this runner
xxx
Please enter the gitlab-ci description for this runner
my-runner
INFO[0034] fcf5c619 Registering runner... succeeded
Please enter the executor: shell, docker, docker-ssh, ssh?
docker
Please enter the Docker image (eg. ruby:2.1):
ruby:2.1
INFO[0037] Runner registered successfully. Feel free to start it, but if it's
running already the config should be automatically reloaded!
Update
sudo apt-get update
sudo apt-get install gitlab-ci-multi-runner
For more help, please check official doc.