-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(roll): roll to 1.47 Playwright (#1526)
- Loading branch information
1 parent
6b7c939
commit 7f4e3ee
Showing
3 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ This Docker image is intended to be used for testing and development purposes on | |
### Pull the image | ||
|
||
```bash | ||
docker pull mcr.microsoft.com/playwright:v1.47.1-noble | ||
docker pull mcr.microsoft.com/playwright:v1.47.2-noble | ||
``` | ||
|
||
### Run the image | ||
|
@@ -33,15 +33,15 @@ By default, the Docker image will use the `root` user to run the browsers. This | |
On trusted websites, you can avoid creating a separate user and use root for it since you trust the code which will run on the browsers. | ||
|
||
```bash | ||
docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.47.1-noble /bin/bash | ||
docker run -it --rm --ipc=host mcr.microsoft.com/playwright:v1.47.2-noble /bin/bash | ||
``` | ||
|
||
#### Crawling and scraping | ||
|
||
On untrusted websites, it's recommended to use a separate user for launching the browsers in combination with the seccomp profile. Inside the container or if you are using the Docker image as a base image you have to use `adduser` for it. | ||
|
||
```bash | ||
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.47.1-noble /bin/bash | ||
docker run -it --rm --ipc=host --user pwuser --security-opt seccomp=seccomp_profile.json mcr.microsoft.com/playwright:v1.47.2-noble /bin/bash | ||
``` | ||
|
||
[`seccomp_profile.json`](https://github.com/microsoft/playwright/blob/main/utils/docker/seccomp_profile.json) is needed to run Chromium with sandbox. This is a [default Docker seccomp profile](https://github.com/docker/engine/blob/d0d99b04cf6e00ed3fc27e81fc3d94e7eda70af3/profiles/seccomp/default.json) with extra user namespace cloning permissions: | ||
|
@@ -74,10 +74,10 @@ See our [Continuous Integration guides](./ci.mdx) for sample configs. | |
See [all available image tags]. | ||
|
||
We currently publish images with the following tags: | ||
- `:v1.47.1` - Playwright v1.47.1 release docker image based on Ubuntu 24.04 LTS (Noble Numbat). | ||
- `:v1.47.1-noble` - Playwright v1.47.1 release docker image based on Ubuntu 24.04 LTS (Noble Numbat). | ||
- `:v1.47.1-jammy` - Playwright v1.47.1 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish). | ||
- `:v1.47.1-focal` - Playwright v1.47.1 release docker image based on Ubuntu 20.04 LTS (Focal Fossa). | ||
- `:v1.47.2` - Playwright v1.47.2 release docker image based on Ubuntu 24.04 LTS (Noble Numbat). | ||
- `:v1.47.2-noble` - Playwright v1.47.2 release docker image based on Ubuntu 24.04 LTS (Noble Numbat). | ||
- `:v1.47.2-jammy` - Playwright v1.47.2 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish). | ||
- `:v1.47.2-focal` - Playwright v1.47.2 release docker image based on Ubuntu 20.04 LTS (Focal Fossa). | ||
|
||
:::note | ||
It is recommended to always pin your Docker image to a specific version if possible. If the Playwright version in your Docker image does not match the version in your project/tests, Playwright will be unable to locate browser executables. | ||
|
@@ -101,7 +101,7 @@ To run Playwright inside Docker, you need to have Node.js, [Playwright browsers] | |
```Dockerfile | ||
FROM node:20-bookworm | ||
|
||
RUN npx -y [email protected].1 install --with-deps | ||
RUN npx -y [email protected].2 install --with-deps | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters