Skip to content
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

Unable to install in Cypress Docker image as non-root #18792

Closed
ryan-at-cypress opened this issue Nov 4, 2021 · 3 comments
Closed

Unable to install in Cypress Docker image as non-root #18792

ryan-at-cypress opened this issue Nov 4, 2021 · 3 comments
Labels
stale no activity on this issue for a long period topic: installation Issue during installation or downloading Cypress

Comments

@ryan-at-cypress
Copy link

Current behavior

When running Cypress tests with this docker image, an error is received that the directory is not writable and Cypress requires access to this directory in order to store screenshots and videos. See attached for full error.

Debug logs

#!/bin/bash
set +x

echo "Chrome"
docker run -i -v $PWD:/wax-ui-tests -w /wax-ui-tests -u node cypress/included:7.4.0 --browser chrome --record --key=XXXX

echo "Firefox"
docker run -i -v $PWD:/wax-ui-tests -w /wax-ui-tests -u node cypress/included:5.6.0 --browser firefox --record --key=XXXX

Results in:

Folder /wax-ui-tests is not writable.

Writing to this directory is required by Cypress in order to store screenshots and videos.

Enable write permissions to this directory to ensure screenshots and videos are stored.

If you don't require screenshots or videos to be stored you can safely ignore this warning.

Cypress Version

7.4.0

Package Manager

npm

Operating system

Linux

Other

No response

@ryan-at-cypress ryan-at-cypress added the topic: installation Issue during installation or downloading Cypress label Nov 4, 2021
@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label May 15, 2023
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale no activity on this issue for a long period topic: installation Issue during installation or downloading Cypress
Projects
None yet
Development

No branches or pull requests

2 participants