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.
rayitopy
(Daniel Martín)
July 23, 2018, 1:34pm
4
Any new on this? It is planed to add this?
scjudd
(Spencer Judd)
November 25, 2018, 11:45pm
5
Curious to know if there is a solution for --ipc=host
.
mhumeSF
(Mike Hume)
December 5, 2018, 5:59pm
6
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
tommueller
(Tom Müller)
January 7, 2020, 10:03am
7
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
mhumeSF
(Mike Hume)
January 7, 2020, 5:30pm
8
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.
rucciva
(Rucciva)
March 18, 2020, 12:17am
9
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?