草庐IT

gitlab-ci-token

全部标签

docker - 自托管 Gitlab 注册表 : Connection refused for localhost:5000

我正在使用traefik作为反向代理(以及用于管理letsencrypt证书),我正在运行一个自托管的gitlab实例。GitLab镜像是一个整体,其中包含所有服务,两个服务(Registry和Git)都需要在同一个容器中提供。通过如下所示的配置,gitlab运行良好。dockerloginregistry.domain.com也在工作。但是在gitlab前端导航到注册表会给我一个500错误。gitlab日志:Errno::EADDRNOTAVAIL(FailedtoopenTCPconnectiontolocalhost:5000(Cannotassignrequestedaddre

docker - gitlab docker 几秒钟后停止,因为他无法再访问 postgres

所以我在一个月前使用Ansible并创建了gitlab角色。它工作得很好。我现在正在尝试再次使用它(如果我理解良好,它会使用最新版本的gitlab)但它会在我启动它时停止docker,因为:PG::ConnectionBad:couldnotconnecttoserver:ConnectionrefusedIstheserverrunningonhost"postgres"(172.18.0.3)andacceptingTCP/IPconnectionsonport5432.问题是我在ufw中添加了允许任何proto到此端口的规则,并且它在一个月前工作。有什么想法吗?

docker - gitlab docker 几秒钟后停止,因为他无法再访问 postgres

所以我在一个月前使用Ansible并创建了gitlab角色。它工作得很好。我现在正在尝试再次使用它(如果我理解良好,它会使用最新版本的gitlab)但它会在我启动它时停止docker,因为:PG::ConnectionBad:couldnotconnecttoserver:ConnectionrefusedIstheserverrunningonhost"postgres"(172.18.0.3)andacceptingTCP/IPconnectionsonport5432.问题是我在ufw中添加了允许任何proto到此端口的规则,并且它在一个月前工作。有什么想法吗?

docker - Circle CI Docker 服务不缓存 COPY

我在CircleCI上运行docker我在缓存COPY命令时遇到问题。CircleCI文档提到knowncachingissues并推荐使用thisperlscript在复制的文件上设置时间戳以保留缓存。Dockerbestpracticedocs状态:InthecaseoftheADDandCOPYinstructions,thecontentsofthefile(s)beingputintotheimageareexamined.Specifically,achecksumisdoneofthefile(s)andthenthatchecksumisusedduringthecac

docker - Circle CI Docker 服务不缓存 COPY

我在CircleCI上运行docker我在缓存COPY命令时遇到问题。CircleCI文档提到knowncachingissues并推荐使用thisperlscript在复制的文件上设置时间戳以保留缓存。Dockerbestpracticedocs状态:InthecaseoftheADDandCOPYinstructions,thecontentsofthefile(s)beingputintotheimageareexamined.Specifically,achecksumisdoneofthefile(s)andthenthatchecksumisusedduringthecac

docker - gcloud docker push 结果为 "denied: Token exchange failed for project ' gcp-project-id-example'。”

我已运行gcloudauthlogin,gcloudauthconfigure-docker,gcloudcomponentsinstalldocker-credential-gcr,gcloudconfigsetprojectgcp-project-id-example.我之前已经推送到这个存储库,所以我有点惊讶它现在不起作用?我已通过gcloudauthlogin进行身份验证我的用户拥有完整的编辑权限。sudogclouddocker--pusheu.gcr.io/gcp-project-id-example/pipelinebuild:latestWARNING:`gcloudd

docker - gcloud docker push 结果为 "denied: Token exchange failed for project ' gcp-project-id-example'。”

我已运行gcloudauthlogin,gcloudauthconfigure-docker,gcloudcomponentsinstalldocker-credential-gcr,gcloudconfigsetprojectgcp-project-id-example.我之前已经推送到这个存储库,所以我有点惊讶它现在不起作用?我已通过gcloudauthlogin进行身份验证我的用户拥有完整的编辑权限。sudogclouddocker--pusheu.gcr.io/gcp-project-id-example/pipelinebuild:latestWARNING:`gcloudd

docker - Gitlab CI 运行器配置与 docker 上的缓存

我似乎无法在gitlabCI的作业之间获取缓存或工件。我怀疑这与我的配置有关,但我不确定是什么。我正在使用以下docker-compose配置在docker中运行gitlab和gitlab-ci-multirunner。为简洁起见,我省略了数据库配置和一些环境变量:version:'2'services:gitlab:image:sameersbn/gitlab:8.5.1links:-redis:redisio-postgresql:postgresqlports:-"10080:80"-"10022:22"environment:...volumes:-gitlab_data:/h

docker - Gitlab CI 运行器配置与 docker 上的缓存

我似乎无法在gitlabCI的作业之间获取缓存或工件。我怀疑这与我的配置有关,但我不确定是什么。我正在使用以下docker-compose配置在docker中运行gitlab和gitlab-ci-multirunner。为简洁起见,我省略了数据库配置和一些环境变量:version:'2'services:gitlab:image:sameersbn/gitlab:8.5.1links:-redis:redisio-postgresql:postgresqlports:-"10080:80"-"10022:22"environment:...volumes:-gitlab_data:/h

git - 让 git 用户的 sshd 登录转发到(GitLab)Docker 容器

我想在我的主机上配置sshd以将某个用户的公钥登录转发到运行自己的sshd服务的Docker容器。为了提供一些上下文,我在Docker容器中运行GitLab,我不喜欢在主机上打开另一个端口以进行SSHGitLab通信,而是在主机上使用sshd重定向用户并直接键入GitLab公开的端口在本地机器上。我的想法是做这样的事情:MatchUsergitForceCommandssh-pgit@localhost...非常感谢您的帮助! 最佳答案 我找到了一个简单的解决方法。只需在主机上创建一个Git用户并提供一个代理脚本,该脚本使用主机的S