【发布时间】:2021-05-15 14:04:57
【问题描述】:
我正在尝试使用 GCB 运行 cypress 管道,但在 docker 中运行时它会崩溃。
如here 所述,此问题的修复方法是使用--ipc=host 运行docker。
但是查看文档,我找不到如何在 GCB 中将参数传递给 docker run。
谁能帮帮我?
管道是
steps:
# Install node_modules
- name: 'gcr.io/cloud-builders/yarn'
args: ['install']
# Lint JS
- name: 'gcr.io/cloud-builders/yarn'
args: ['lint']
# Unit tests
- name: 'gcr.io/cloud-builders/yarn'
args: ['test:unit', '--coverage']
# E2E tests (cypress dependencies required, see https://github.com/GoogleCloudPlatform/cloud-builders-community/pull/485)
- name: 'gcr.io/$PROJECT_ID/cypress-dependencies'
args: ['test:e2e', '--headless', '--config', 'video=false']
【问题讨论】:
-
你能分享你的管道吗?
-
@guillaumeblaquiere 添加到主帖中
标签: docker google-cloud-platform cypress google-cloud-build cloudbuild.yaml