mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 13:45:36 +03:00
487bc589b0
This patch: - refactors script to output per-browser package dependencies. This is to aid with per-browser docker setup and Playwright github action. - sorts package maps for both Ubuntu 18.04 and Ubuntu 20.04 alphabetically (and removes a stray dependency) References #2926 |
||
---|---|---|
.. | ||
inside_docker | ||
.gitignore | ||
README.md | ||
run.sh |
Mapping distribution libraries to package names
Playwright requires a set of packages on Linux distribution for browsers to work.
Before launching browser on Linux, Playwright uses ldd
to make sure browsers have all
dependencies met.
If this is not the case, Playwright suggests users packages to install to meet the dependencies. This tool helps to maintain a map between package names and shared libraries it provides, per distribution.
Usage
To generate a map of browser library to package name on Ubuntu:bionic:
$ ./run.sh ubuntu:bionic
Results will be saved to the RUN_RESULT
.
How it works
The script does the following:
- Launches docker with given linux distribution
- Installs playwright browsers inside the distribution
- For every dependency that Playwright browsers miss inside the distribution, uses
apt-file
to reverse-search package with the library.