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

Firefox not available in included? #1220

Open
pkly opened this issue Sep 30, 2024 · 4 comments
Open

Firefox not available in included? #1220

pkly opened this issue Sep 30, 2024 · 4 comments
Assignees
Labels

Comments

@pkly
Copy link

pkly commented Sep 30, 2024

Hello, I've build an image adding docker stuff on top of cypress/included:cypress-13.15.0-node-20.17.0-chrome-129.0.6668.70-1-ff-130.0.1-edge-129.0.2792.52-1, but when I run it in CI it complains that firefox is not installed?

You can also use a custom browser: https://on.cypress.io/customize-browsers
Available browsers found on your system are:
 - chrome
 - edge
 - electron

I'm not sure what happened along the way to make firefox no longer available in CI.

Sorry if this is my error, but I'm confused how could I remove an entire browser by simply installing docker and running npm install -g typescript ts-node in said image.

@MikeMcC399
Copy link
Collaborator

@pkly

Possibly you are running into the problem Firefox not found.

  • Which CI provider are you using?
  • How are you running your Docker image?

@MikeMcC399 MikeMcC399 added the bug label Sep 30, 2024
@MikeMcC399 MikeMcC399 self-assigned this Sep 30, 2024
@MikeMcC399
Copy link
Collaborator

BTW typescript is already globally installed (although that is not documented)

$ docker run -it --rm --entrypoint bash cypress/included:13.15.0 -c "npm ls -g"
/usr/local/lib
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]

@pkly
Copy link
Author

pkly commented Sep 30, 2024

@MikeMcC399 gitlab ci's on a custom runner, it's just a docker image built on top of the original one with some stuff added, I didn't explicitly specify a user for the runner though, so that could be it maybe

@MikeMcC399
Copy link
Collaborator

MikeMcC399 commented Sep 30, 2024

@pkly

If you add

firefox --version

into your GitLab workflow, you should get a usable error message if you are running the container under the (default) root user.

This is the message for GitHub. Check which uid is mentioned by GitLab and run your container under that uid

Run firefox --version
  firefox --version
  shell: sh -e {0}
Running Firefox as root in a regular user's session is not supported.  ($HOME is /github/home which is owned by uid 1001.)
Error: Process completed with exit code 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants