GitLab Runner is an application that works with GitLab CI/CD to run jobs in a pipeline.
This section describes how to install and configure GitLab runner using docker on Fedora server
Set up the repository
$: sudo dnf -y install dnf-plugins-core $: sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo |
Install Docker Engine
$: sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
Convenience script (official instructions) – recommended only for testing and development purposes
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh |
Start docker container with latest version of gitlab runner (official instructions)
$: docker run -d --name gitlab-runner --restart always \ -v /srv/gitlab-runner/config:/etc/gitlab-runner \ -v /var/run/docker.sock:/var/run/docker.sock \ gitlab/gitlab-runner:latest |
Call following on the server with running docker container
docker exec -it gitlab-runner gitlab-runner register --docker-privileged |