Create an Ubuntu 23.04 instance on OVH. You will have to provide a SSH key during the instance creation process.
First, install Docker: follow Install Docker Engine on Ubuntu instructions.
Pull the docker image:
docker pull nvidia/cuda:12.2.0-devel-ubuntu22.04
Second, install Gitlab-runner: follow Install GitLab Runner using the official GitLab repositories instructions.
Register the runner using the informations provided in the "Runners" section in Gitlab project "Settings" -> "CI/CD":
sudo gitlab-runner register
Fill in static_analysis,docker
for the tag, docker
for the executor and just copy-past the example for the default Docker image.
Edit the /etc/gitlab-runner/config.toml
to increase the number of concurrent
jobs (first line) to match at least the number of vcores.