终极调试gitlab ci/cd 流水线的手段 进入交互式控制台。
【摘要】
https://docs.gitlab.com/ee/administration/integration/terminal.html#enabling-and-disabling-terminal-su...
https://docs.gitlab.com/ee/administration/integration/terminal.html#enabling-and-disabling-terminal-support
https://docs.gitlab.com/ee/ci/interactive_web_terminal/
以docker 启动runner 的方式为例
共享runner 不支持,heml的runner 尚未支持,
启动runner时 映射出 8093端口
docker run -d --name gitlab-runner -p 8093:8093 --restart always \
-v /srv/gitlab-runner/config:/etc/gitlab-runner \
-v /var/run/docker.sock:/var/run/docker.sock \
gitlab/gitlab-runner:latest
- 1
- 2
- 3
- 4
然后进入 config.toml 文件进行配置session
vim /srv/gitlab-runner/config/config.toml
# 在顶部修改session
# 以下是我的配置 runner 安装在 47.119.191.21
[session_server]
session_timeout = 1800
listen_address = "[::]:8093"
advertise_address = "47.119.191.21:8093"
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
三个字段的解释
属性 | 解释 |
---|---|
listen_address | An internal URL for the session server. |
advertise_address | The URL to access the session server. GitLab Runner exposes it to GitLab. If not defined, listen_address is used. |
session_timeout | Number of seconds the session can stay active after the job completes. The timeout blocks the job from finishing. Default is 1800 (30 minutes). |
调试
点击右上角的 debug 按钮 即可进入控制台。
文章来源: fizzz.blog.csdn.net,作者:拿我格子衫来,版权归原作者所有,如需转载,请联系作者。
原文链接:fizzz.blog.csdn.net/article/details/117399891
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)