I am trying to run a cypress pipeline using GCB, but it crashes when running inside docker.
The fix for this issue, as described here, is to run the docker with --ipc=host
.
But looking in the documentation, I couldn't find how I pass parameters to docker run in GCB.
Can anyone help me?
The pipeline is
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']