GitLab CI
sudo apt install git- https://docs.docker.com/engine/install/debian/#install-from-a-package
- https://docs.gitlab.com/runner/install/
- Create a group runner: https://docs.gitlab.com/ci/runners/runners_scope/#group-runners
- Add
sudoto the command it gives you!
- Add
- Create a group runner: https://docs.gitlab.com/ci/runners/runners_scope/#group-runners
- Goal: run
gitlab-runneras asystemdservice - This runs it as root. For this to work:
- The config needs to be at the system level
- To do this:
sudo gitlab-runner register
- To do this:
- The docker executor needs access to
/var/run/docker.sock- To do this:
sudo usermod -aG docker gitlab-runnersudo systemctl restart gitlab-runner
- To do this:
- The config needs to be at the system level
- Verify it's working
systemctl status gitlab-runner
Slapdash