Tag: docker gitlab

gitlab-runner和docker executor找不到官方的图片,比如maven:3.3.9-jdk-8

试图用docker executor来使用gitlab-runner。 我使用标准的maven .gitlab-ci.yml模板来标识库图像maven:3.3.9-jdk-8 。 出于某种原因,我得到这个错误: Running with gitlab-ci-multi-runner 1.11.0 (33af656) on 4caf1e03c61d (0cb58cc5) Using Docker executor with image maven:3.3.9-jdk-8 … ERROR: Preparation failed: no such image Will be retried in 3s … Using Docker executor with image maven:3.3.9-jdk-8 … ERROR: Preparation failed: no such image Will be retried in 3s … Using Docker executor […]

GitLab使用gitlab-runner进行本地构build

我试图在Linux上使用.gitlab-ci.yml和gitlab-runner在GitLab中构build项目。 不幸的是脚本需要login才能工作 image: docker:latest services: – docker:dind build: stage: build script: – export IMAGE_TAG=$(echo -en $CI_COMMIT_REF_NAME | tr -c '[:alnum:]_.-' '-') – docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY # user "gitlab-ci-token" is automatically created by GitLab – docker build –pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" . – docker push "$CI_REGISTRY_IMAGE:$IMAGE_TAG" 命令行input和输出: $ gitlab-ci-multi-runner exec docker –docker-privileged build […]

无法访问docker中的gitlab存储库

我跑了gitlab容器,并创build新的回购。 当我尝试克隆使用http或ssh的回购时,我收到: fatal: unable to access 'http://root@3908eec185ce/root/my-awesome-project.git/': Could not resolve host: 3908eec185ce 有我如何克隆: git clone http://root@3908eec185ce/root/my-awesome-project.git

运行在runner- … -concurrent-0通过…亚军长时间永远不会结束

我使用一个自定义docker集装箱 FROM mhart/alpine-node:8 # Install pngquant … # Install Python … # install yarn (via npm) … 我按照这个说明在CentOS上安装Docker, 这个安装Runner和这个注册Runner。 这是我跑步者的configuration

GitLab Runner报告失败的Docker镜像构build阶段已通过

如果我的Docker Image在GitLab Runner Pipleline / Stage内部构build失败,则该阶段被标记为传递,然后移动到下一个阶段,但它应该报告失败并停止Runner。

在gitlab ci过程中推送访问

我在我的项目中使用Gitlab CI,并且想要实现发布分支到特性分支的自动合并,所以构build环境需要编写(推送)对存储库的访问。 构build发生在Docker容器内部。 可以使用HTTP / HTTPS令牌来完成,或者只使用ssh和密钥(所以我需要在容器中安装ssh客户端)? 还是有Gitlabembedded式function? 更新:我的解决方法是使用Gitlab API和合并请求。

通过docker socket连接Gitlab和runner

机器:在Windows上的Docker工具箱 我试图让gitlab连接到一台机器上的docker中的所有gitlab容器。 我只需要gitlab在专用networking上运行。 我可以ping容器但不能连接它们 我一直在遵循以下文档:docs.gitlab .com / omnibus / docker / docs.gitlab .com / ce / ci / docker / using_docker_build.html#use-docker-socket-binding 首先我创build一个dockernetworking来链接容器docker network create –driver bridge isolated_nw 然后我用下面的命令启动我的gitlab容器: docker run –detach \ –hostname gitlab.example.com \ –env GITLAB_OMNIBUS_CONFIG="external_url 'http://192.168.99.100/'; gitlab_rails['lfs_enabled'] = true; gitlab_rails['gitlab_shell_ssh_port'] = 10022" \ –publish 443:443 –publish 80:80 –publish 10022:22 \ –name gitlab \ […]

Docker gitlab runner找不到odoo映像的path

使用shell执行器 ,gitlab runner成功通过testing Running with gitlab-ci-multi-runner 9.1.0 (0118d89) on Runner01 (02cf77da) Using Shell executor… Running on GitlabRunner01… Fetching changes… HEAD is now at c931894 left only attendance view access permissions Checking out d517f932 as develop9… Skipping Git submodules setup $ python -V Python 2.7.12 $ chmod +x tests.sh $ ./tests.sh Testing for modules: hr_contract_leaves,hr_employee_birthdat_reminder,hr_employee_documents,hr_employee_emergency_contract,hr_employee_loan,hr_employee_medical_information,hr_employee_statutory_detail,hr_payslip_reports,hr_recruitment_interviewer,hr_recruitment_job_stage_survey,hr_recruitment_reports,account,account_accountant,board,calendar,contacts,crm,fleet,hr,hr_attendance,hr_expense,hr_holidays,hr_payroll,hr_recruitment,hr_timesheet,im_livechat,lunch,mail,maintenance,mass_mailing,mrp,mrp_repair,note,point_of_sale,project,project_issue,purchase,sale,survey,website,website_blog,website_event,website_forum,website_slides Starting […]

无法在GitLab CI上的docker镜像中导入django

我试着在gitlab ci中运行我的djangotestingpython manage.py test 。 因此,我正在使用一个泊坞窗图像。 泊坞窗图像生成的罚款,但是当它运行在gitlab上的testing我得到ImportError: No module named 'django'和 Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? 看我的.gitlab-ci.yml image: registry.gitlab.com/app/core:latest services: – postgres:latest stages: – test variables: SECRET_KEY: test-secret POSTGRES_DB: … POSTGRES_USER: … POSTGRES_PASSWORD: … python_tests: stage: test […]

在.gitlab-ci.yml中找不到curl命令

我有一个.gitlab-ci.yml文件。 它创build了一些docker图像,并推送到AWS ECR。 当我运行curl命令将一些工件推送到远程仓库时,它说curl:找不到。 我已经使用openjdk图像来做./gradlew构build。 不知道如何在Gitlab runner上安装curl。 请指导。