Does drone support "--ipc host" option?

Has issue when run a build in drone agent, from its error, I was pointed to run the container with below option by (https://github.com/cypress-io/cypress/issues/350)

--ipc host

But after added the option

     image: cypress/base:8
     commands:
       - npm run cypress:run
     ipc: host

Got below error:

This is the error from drone Cannot configure both commands and custom attributes [ipc]

I think Drone is a superset of docker-compose, if docker-compose supports this option, drone should, but seems it is not.

Anything I can do to support this option in drone pipeline?

I think Drone is a superset of docker-compose, if docker-compose supports this option, drone should, but seems it is not.

drone does aim to be a superset of docker-compose syntax, but does not support all docker-compose fields or options yet. I add these fields on an as-needed basis. This particular field is not yet supported.

Sure, thanks for the confirmation.

Any new on this? It is planed to add this?

Curious to know if there is a solution for --ipc=host.

We got around this issue by using by setting shm_size: 4096000000 at the pipeline step

  test:
    image: cypress/browsers:chrome67
    shm_size: 4096000000
    commands:
      - yarn --pure-lockfile
      - yarn test
2 Likes

Any news on this? I am also struggling with running cypress-tests in drone. @mhumeSF setting did not help for us.
Thanks and sorry for bumping up such an old topic

I’d look at running an exec runner https://docs.drone.io/pipeline/exec/overview/ so cypress wouldn’t have to run inside a container.

What about declaring volume such as:

volumes:
  - name: shm
    temp:
      size_limit: 1073741824
      medium: "memory"

And use it as volume in your cypress step such as

...
    volumes:
      - name: shm
        path: /dev/shm

I got around cypress’s rendering crash using this

1 Like

Perfect timing! Thanks so much I just did this & it worked.

1 Like

is it still not supported?