GitLab和Docker注册表位于不同的服务器上

GitLab和Docker注册表位于不同的服务器上,docker,gitlab,gitlab-ci,lets-encrypt,docker-registry,Docker,Gitlab,Gitlab Ci,Lets Encrypt,Docker Registry,我有点绝望,开始发疯了。 我试图将我的gitlab实例(omnibus)配置为使用外部私有docker映像注册表。起初我认为应该是比较容易的任务。但现在我完全糊涂了 我的初始安装如下所示: 生成自签名证书 使用docker compose和nginx清除Ubuntu 18.04上docker注册表的实例。由registry.domain.com上的letsEncrypt保护 我使用以下脚本: 清除Ubuntu 18.04上的gitlab实例。通过gitlab.domain.com上的let

我有点绝望,开始发疯了。 我试图将我的gitlab实例(omnibus)配置为使用外部私有docker映像注册表。起初我认为应该是比较容易的任务。但现在我完全糊涂了

我的初始安装如下所示:

  • 生成自签名证书
  • 使用docker compose和nginx清除Ubuntu 18.04上docker注册表的实例。由registry.domain.com上的letsEncrypt保护 我使用以下脚本:
  • 清除Ubuntu 18.04上的gitlab实例。通过gitlab.domain.com上的letsEncrypt进行保护

  • gitlab.rb中的一些更改如下:

gitlab ctl重新配置后,我收到letsEncrypt错误:

letsencrypt_certificate[gitlab.domain.net] (letsencrypt::http_authorization line 5) had an error: RuntimeError: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 25) had an error: RuntimeError: ruby_block[create certificate for gitlab.domain.net] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/acme/resources/certificate.rb line 108) had an error: RuntimeError: [gitlab.domain.com] Validation failed, unable to request certificate
我什么都试了,但什么也帮不了我


是否有任何简单的方法可以使用外部Docker注册表安装GitLab服务器?如何正确配置它?我愿意将所有东西都烧成灰烬,并再次使用工作配置进行配置。

这里没有亲爱的支持团队,你完全正确。我试图在一些服务中找到帮助,但在粘贴帖子时忘记了更改。我道歉。
    registry_external_url ‘https://registry.domain.com/’
    gitlab_rails[‘registry_enabled’] = true
    gitlab_rails[‘registry_host’] = “registry.domain.com”
    gitlab_rails[‘registry_port’] = “5000”

    gitlab_rails[‘registry_api_url’] = “htps://registry.prismstudio.space:5000”
    gitlab_rails[‘registry_key_path’] = “/etc/gitlab/registry-certs/registry-auth.key”
    gitlab_rails[‘registry_issuer’] = “gitlab-issuer”
letsencrypt_certificate[gitlab.domain.net] (letsencrypt::http_authorization line 5) had an error: RuntimeError: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 25) had an error: RuntimeError: ruby_block[create certificate for gitlab.domain.net] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/acme/resources/certificate.rb line 108) had an error: RuntimeError: [gitlab.domain.com] Validation failed, unable to request certificate