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

Webkit: Add any newly required Linux deps to our docker images for running Webkit browser #526

Open
jennifer-shehane opened this issue Aug 10, 2021 · 2 comments

Comments

@jennifer-shehane
Copy link
Member

Add anything required and documented in cypress-io/cypress-documentation#4060

@flotwig
Copy link
Contributor

flotwig commented Sep 13, 2022

I think we should wait until WebKit is in stable to add this. WebKit adds like 500MB of dependencies to our current image, and maintaining a separate image series for it seems like more effort than it's worth when users can run npx playwright install-deps webkit for now.

@ceisele-r
Copy link

ceisele-r commented Feb 6, 2023

@jennifer-shehane @flotwig is there any simple way to add missing required dependencies besides what npx playwright install-deps webkit installs for the cypress docker containers?

I am trying to build a docker image FROM cypress/browsers:node18.12.0-chrome107 and added npx playwright install-deps webkit to the dockerfile to install the missing dependencies to be able to also run webkit tests with it. But when trying to execute tests using webkit browser with cypress, the following error is emitted:

There was an error launching `playwright-webkit`:
Error: 
╔══════════════════════════════════════════════════════╗
║ Host system is missing dependencies to run browsers. ║
║ Missing libraries:                                   ║
║     libvpx.so.7                                      ║
║     libicui18n.so.70                                 ║
║     libicuuc.so.70                                   ║
║     libjpeg.so.8                                     ║
║     libwebp.so.7                                     ║
║     libffi.so.8                                      ║
╚══════════════════════════════════════════════════════╝ Failed to launch browser.

I know the used cypress image derives from debian:bullseye-slim. I tried to find and install the missing packages using apt-get ... but with no luck so far... What I've tried was to do the following additional install besides npx playwright install-deps webkit:

apt-get install -y libvpx6 libvpx-dev libicu-dev libjpeg-dev libwebp-dev libffi-dev

Edit:
The issue mentioned above was my fault. See my answer with a solution here. Sorry.

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

No branches or pull requests

5 participants