Gitlab运行容器的主机名 [英] Gitlab runner Container hostname
本文介绍了Gitlab运行容器的主机名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在gitlab ci(docker执行器)中开始构建时,其创建容器的名称为"runner-0fa22293-project-174-concurrent-0-postgres"
When i start a build in gitlab ci (docker executer) its creating container with name "runner-0fa22293-project-174-concurrent-0-postgres"
"0fa22293-project-174-concurrent-0"代表什么?
In this what does "0fa22293-project-174-concurrent-0" represent ?
这里使用的命名约定是什么?
What is the naming convention used here?
推荐答案
我相信格式如下:
runner-<token>-project-<project ID>-concurrent-<concurrent job #>
-
<token>
是运行构建的CI运行程序的运行程序令牌的前8个字符. -
<project ID>
是项目的ID.也是您在访问API时也会使用的项目ID. -
<concurrent job #>
是此构建的此作业的编号. GitLab CI使您可以同时运行一个构建中的多个作业,因此,如果您同时运行5个作业中的3个,则会看到...-concurrent-0
,...-concurrent-1
,...-concurrent-2
<token>
is the first 8 characters of the Runner Token for the CI runner that is running the build.<project ID>
is the ID of the project. The is the project ID you'd use during API access too.<concurrent job #>
is the number of this job, for this build. GitLab CI lets you run several jobs in a build concurrently, so if you had 3 of 5 jobs running concurrently you would see...-concurrent-0
,...-concurrent-1
,...-concurrent-2
这篇关于Gitlab运行容器的主机名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文