草庐IT

极狐GitLab

全部标签

Docker 注册表的 Docker/GitLab 身份验证返回 401 错误

我正在尝试使用gitlab(docker)的身份验证来配置我的docker注册表。执行dockerloginregistry.website.com给我一个401Unauthorized错误:Errorresponsefromdaemon:loginattempttohttps://registry.website.com/v2/failedwithstatus:401Unauthorized在我找到的docker日志中{"level":"info","msg":"tokensignedbyuntrustedkeywithID:\"IWNY:KT2H:YUN5:STQP:22LM:YN

docker - GitLab CI runner 无法连接到 kubernetes 中的 unix :///var/run/docker. sock

GitLab在Kubernetes集群中运行。Runner无法使用构建工件构建docker镜像。我已经尝试了几种方法来解决这个问题,但没有运气。以下是一些配置片段:.gitlab-ci.ymlimage:docker:latestservices:-docker:dindvariables:DOCKER_DRIVER:overlaystages:-build-package-deploymaven-build:image:maven:3-jdk-8stage:buildscript:"mvnpackage-B--settingssettings.xml"artifacts:paths:

docker - Gitlab-runner 本地构建 - 从非 TTY 设备登录

我正在尝试在Linux上使用gitlab-runner在本地构建我的项目。docker-build:stage:buildimage:docker:latestscript:-dockerlogin-u"gitlab-ci-token"-p"$CI_JOB_TOKEN"$CI_REGISTRY#user"gitlab-ci-token"isautomaticallycreatedbyGitLab-dockerbuild-t"$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME"target/-dockerpush"$CI_REGISTRY_IMAGE:$CI_C

docker - docker-in-docker (dind) 服务在 gitlab ci 中的作用

据官方gitlabdocumentation,在ci管道中启用dockerbuild的一种方法是利用dind服务(根据gitlab-ciservices)。但是,由于在docker执行器上运行ci作业总是如此,因此还需要docker:latest镜像。谁能解释一下:docker:dind和docker:latest镜像有什么区别?(最重要的是):why是both需要的服务和docker镜像(例如,如inthisexample所示,链接自github文档)来执行例如一个ci工作的dockerbuild?docker:latest图像(将在其中执行作业!)是否包含docker守护进程(我认

docker - 如何让 gitlab-ci-runner DinD 图像缓存中间图像?

我有一个Dockerfile,它从安装texlive-full包开始,它很大并且需要很长时间。如果我在本地dockerbuild,安装后创建的中间镜像会被缓存,后续构建速度很快。但是,如果我推送到我自己的GitLab安装并且GitLab-CI构建运行程序启动,这似乎总是从头开始,重新下载FROM图像,并再次进行apt-get安装.这对我来说似乎是一个巨大的浪费,所以我试图弄清楚如何让GitLabDinD图像缓存构建之间的中间图像,到目前为止还没有运气。我已经尝试将--cache-dir和--docker-cache-dir用于gitlab-runnerregister命令,无济于事。这

mongodb - 带有嵌入式 mongodb 的 gitlab 管道

我正在尝试为使用嵌入式mongo实例的gradlejava应用程序构建管道。我已经构建了一个包含java和mongo的容器。但是,对于需要嵌入式mongo实例的所有测试,我不断收到以下错误。org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'embeddedMongoServer'definedinclasspathresource[org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoAutoC

go - Gitlab-CI 运行器 : ignore self-signed certificate

gitlab-ci-multi-runnerregister给我couldn'texecutePOSTagainsthttps://xxxx/ci/api/v1/runners/register.json:Posthttps://xxxx/ci/api/v1/runners/register.json:x509:cannotvalidatecertificateforxxxxbecauseitdoesn'tcontainanyIPSANs有没有办法禁用认证验证?我正在使用Gitlab8.13.1和gitlab-ci-multi-runner1.11.2。 最

git - 如何在私有(private) GitLab 存储库中使用 Go

GitLab是一种免费的开源方式来托管私有(private).git存储库,但它似乎不适用于Go。当你创建一个项目时,它会生成一个表单的URL:git@1.2.3.4:private-developers/project.git地点:1.2.3.4是gitlab服务器的IP地址private-developers是一个可以访问私有(private)仓库的用户组Golang1.2.1似乎不理解这种语法。gogetgit@1.2.3.4:private-developers/project.git结果:packagegit@23.251.148.129/project.git:unreco

linux - 安装 gitLab 缺少现代化工具?

我尝试使用以下教程在debian上安装gitlab:https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md我正在“安装Gems”步骤并尝试运行:sudo-ugit-Hbundleinstall--deployment--withoutdevelopmenttestpostgresaws我得到了这个echo:Fetchingsourceindexfromhttps://rubygems.org/Couldnotfindmodernizr-2.6.2inanyofthesources我没有找到

Gitlab CI - 如何仅在特定文件集发生更改时触发构建

在GitlabCI中,如何仅在特定文件集发生更改时触发构建?有没有办法在触发构建时包含或排除某些文件?例如:更新README.md、.gitignore文件不应导致构建触发。 最佳答案 更新2Only/except似乎是一个不稳定的功能。文档建议使用rules:changes而是:job:script:-build#replacewithyourbuildcommandrules:-changes:-/*.{java,py}#...orwhateveryourfileextensionis-dockerfiles/**/*#allf