标签:ash 需要 install ack pos ready cdh sep ade
一、添加yum源curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash
二、安装gitlab-runner
yum install gitlab-runner -y
三、配置gitlab-runner
向GitLab-CI注册一个Runner需要两样东西:GitLab-CI的url和注册token。
其中,token是为了确定你这个Runner是所有工程都能够使用的Shared Runner还是具体某一个工程才能使用的Specific Runner。
如果要注册Shared Runner,你需要到管理界面的Runners页面里面去找注册token。
[root@dx-cdh3 cmdb]# gitlab-runner register
Running in system-mode.
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://gitlab.clife.cn/
Please enter the gitlab-ci token for this runner:
jmGuf9k2WsssNaxsBGcnJ6T
Please enter the gitlab-ci description for this runner:
[dx-cdh3]: share_runner
Please enter the gitlab-ci tags for this runner (comma separated):
Registering runner... succeeded runner=jmGuf9k2
Please enter the executor: shell, virtualbox, docker+machine, docker-ssh+machine, kubernetes, docker, docker-ssh, parallels, ssh:
shell
Runner registered successfully. Feel free to start it, but if it‘s running already the config should be automatically reloaded!
四、如果需要使用docker构建服务跟发布,添加用户到docker用户组
usermod -a -G docker gitlab-runner
标签:ash 需要 install ack pos ready cdh sep ade
原文地址:http://blog.51cto.com/aaronsa/2298740