您现在的位置是:首页 > 文章详情

Docker安装gitlab-runner 并注册

日期:2018-11-08点击:592

安装 docker

[root@sannian wode.bak]# curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

下载 gitlab-runner

[root@sannian wode.bak]# docker search gitlab-runner [root@sannian wode.bak]# docker pull gitlab/gitlab-runner

运行runner

[root@sannian wode.bak]# docker run -d --name gitlab-runner --restart always gitlab/gitlab-runner 

注册

[root@sannian wode.bak]# docker exec -it gitlab-runner gitlab-ci-multi-runner register Runtime platform arch=amd64 os=linux pid=11 revision=cf91d5e1 version=11.4.2 Running in system-mode. Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/): http://www.1314916.com:9999/ Please enter the gitlab-ci token for this runner: _8iT1NFZVqf_yq2xDdH2 Please enter the gitlab-ci description for this runner: [27b613653221]: 1314916 Please enter the gitlab-ci tags for this runner (comma separated): 14^H^C[root@sannian wode.bak]# docker exec -it gitlan-runner gitlab-ci-multi-runner register Runtime platform arch=amd64 os=linux pid=20 revision=cf91d5e1 version=11.4.2 Running in system-mode. Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/): http://www.1314916.com:9999/ Please enter the gitlab-ci token for this runner: _8sdffsfdfFZdfqf_yq2xDdH2 Please enter the gitlab-ci description for this runner: [27b613653221]: 1314916 Please enter the gitlab-ci tags for this runner (comma separated): 1314916 Registering runner... succeeded runner=_8iT1NFZ Please enter the executor: docker+machine, docker-ssh+machine, docker, docker-ssh, parallels, shell, ssh, virtualbox, kubernetes: shell Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! [root@sannian wode.bak]# docker exec -it gitlan-runner gitlab-ci-multi-runner list Runtime platform arch=amd64 os=linux pid=32 revision=cf91d5e1 version=11.4.2 Listing configured runners ConfigFile=/etc/gitlab-runner/config.toml 1314916 Executor=shell Token=761fdc8eaeb675c81f28edaadc7e3e URL=http://www.1314916.com:9999/ 

然后在web上查看

4

原文链接:https://yq.aliyun.com/articles/666646
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章