root@dusays:~# dpkg -i gitlab-runner_amd64.deb (Reading database ... 198268 files and directories currently installed.) Preparing to unpack gitlab-runner_amd64.deb ... Unpacking gitlab-runner (14.0.1) over (14.0.1) ... dpkg: dependency problems prevent configurationof gitlab-runner: gitlab-runner depends on git; however: Package git isnot installed. gitlab-runner depends on curl; however: Package curl isnot installed.
dpkg: error processing package gitlab-runner (--install): dependency problems - leaving unconfigured Errors were encountered while processing: gitlab-runner
运行下面的命令安装 Git 和 cURL:
1 2
apt -y install git curl # for Debian or Ubuntu yum -y install git curl # for CentOS or Red Hat Enterprise Linux
注册
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Runtime platform arch=amd64 os=linux pid=5349 revision=c1edb478 version=14.0.1 Running in system-mode. Enter the GitLab instance URL (for example, https://gitlab.com/): https://dusays.com/ Enter the registration token: xxxxxxxxxxxxxxxxxxxx Enter a description for the runner: [dusays]: Enter tags for the runner (comma-separated):
Registering runner... succeeded runner=FKPxD53P Enter an executor: virtualbox, docker+machine, kubernetes, custom, parallels, shell, ssh, docker, docker-ssh, docker-ssh+machine: custom Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!