简体   繁体   English

GitLab CI-为CI / CD设置GitLab Runner

[英]GitLab CI - Setting up the GitLab Runner for CI/CD

I was setting up the GitLab Runner on another server system . 我在另一个服务器系统上设置了GitLab Runner。 I faced an error in the Registration step. 我在注册步骤中遇到错误。 The error said 'having a network problem'. 错误说“有网络问题”。

The detailed description of the error is “ERROR: Registering runner… failed . 该错误的详细描述为“错误:注册运行程序…失败。 Couldn't execute POST against http://gitlab.sw.st ratus.com/api/v4/runners: Post http://gitlab.sw.stratus.com/api/v4/runners : dial tcp 134.111.200.59:80: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.” 无法针对http://gitlab.sw.st ratus.com/api/v4/runners执行POST:发布http://gitlab.sw.stratus.com/api/v4/runners :拨打tcp 134.111.200.59: 80:connectex:连接尝试失败,因为一段时间后连接方未正确响应,或者建立的连接失败,因为连接的主机未能响应。”

The thing is the server system on which I am trying to set up the GitLab Runner uses the port 80 for talking to an Apache server. 问题是我尝试在其上设置GitLab Runner的服务器系统使用端口80与Apache服务器进行通讯。 Is there any way, I can make the GitLab Runner dial a connection on any other port apart from 80? 有什么办法可以使GitLab Runner在80以外的任何其他端口上拨号连接?

Regards, Poornima 问候,Poornima

You should modify advertise_address and listen_address in your Runner configuration. 您应该在Runner配置中修改advertise_addresslisten_address

[session_server]
  listen_address = "0.0.0.0:8093"
  advertise_address = "gitlab.com:8093"

Check here to get the full documentation. 点击此处获取完整的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM