-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cypress docker image root user misconfiguration #914
Comments
There are Jenkins examples listed in the table: cypress-io/cypress-example-kitchensink > CI Workflow Examples The Jenkins examples use cypress/base Docker images. Which type of Docker images were you having problems with ( If you were not using cypress/base perhaps you would like to try that out. |
Closing due to inactivity. |
@MikeMcC399 sorry, I've totally missed your previous question. We were actually using |
Thanks for your feedback and I have re-opened your issue. |
The Cypress binary installs in
The Cypress npm module installs in cypress-docker-images/factory/factory.Dockerfile Lines 111 to 113 in 55c80b6
|
We tried to run cypress docker image under Jenkins which runs all docker images with non-root account. Unfortunately, this is not possible without hack and modifications in the image itself.
I've investigated this a bit and it seems that the source of this issue is that cypress is installed under /root folder by default. This is misconfiguration because /root folder is not designed to host global libraries or software. It translated then to all sorts of problems, like libraries not resolving, difficulties to run images under SaaS CI providers, etc.
My proposal is to have cypress installed into /usr/local or whatever is provided by default npm configuration under used OS.
The text was updated successfully, but these errors were encountered: