[英]Gitlab CE in Docker and gitlab-runner
I installed Gitlab CE in docker container (using image gitlab/gitlab-ce:latest) and everything is working fine but I don't know how to install gitlab-runner. 我将Gitlab CE安装在docker容器中(使用gitlab / gitlab-ce:latest镜像),并且一切正常,但是我不知道如何安装gitlab-runner。 Is gitlab-runner should be installed in the same container as gitlab or maybe as separate container?
是否应将gitlab-runner与gitlab安装在同一容器中,或作为单独的容器安装? If as separate container then how should it be connected to gitlab?
如果作为单独的容器,那么应如何将其连接到gitlab? I cannot find useful information.
我找不到有用的信息。 Can someone help me with this?
有人可以帮我弄这个吗?
GitLab runner can be installed in a cloud on a different continent to be exact. 准确地说,可以将GitLab运行程序安装在不同大陆的云中。 It's a REST service totally independent from the Gitlab itself.
这是一个完全独立于Gitlab本身的REST服务。 Run it anywhere you can, as a separate container on the same host, in a cloud, on your local computer, etc.
尽可能在任何地方运行它,作为同一主机上的单独容器,在云中,在本地计算机上等。
GitLab communicates with its runners using HTTPS protocol. GitLab使用HTTPS协议与其跑步者进行通信。
When you create a runner and run the registration procedure , it asks for: 创建跑步者并运行注册过程时 ,它将要求:
You're done. 你完成了。 The runner will register itself with your GitLab instance.
运行程序将向您的GitLab实例注册。 Note from the support about the communication:
来自支持部门的有关通信的注意事项:
Runners communicate with GitLab over HTTPS, entirely through connections initiated from the Runner to GitLab and never in reverse.
跑步者通过HTTPS与GitLab进行通信,完全通过从跑步者到GitLab发起的连接进行,绝不反向。 The advantage here is that you can install a Runner behind a firewall and as long as the Runner has outbound access to GitLab.com it will work.
这样做的好处是您可以将Runner安装在防火墙后面,并且只要Runner具有对GitLab.com的出站访问权限,它将可以正常运行。 From there, it really doesn't matter which executor you use (Shell, Docker, etc).
从那里开始,实际上使用哪个执行程序(Shell,Docker等)都没有关系。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.