docs(docker): add note on how to create your own (#28434)
https://github.com/microsoft/playwright/issues/28383 --------- Signed-off-by: Max Schmitt <max@schmitt.mx> Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
This commit is contained in:
parent
8efa8dbc1d
commit
da6a36062e
|
|
@ -108,12 +108,12 @@ See our [Continuous Integration guides](./ci.md) for sample configs.
|
|||
See [all available image tags].
|
||||
|
||||
Docker images are published automatically by GitHub Actions. We currently publish images with the
|
||||
following tags (`v1.33.0` in this case is an example:):
|
||||
following tags:
|
||||
- `:next` - tip-of-tree image version based on Ubuntu 22.04 LTS (Jammy Jellyfish).
|
||||
- `:next-jammy` - tip-of-tree image version based on Ubuntu 22.04 LTS (Jammy Jellyfish).
|
||||
- `:v1.33.0` - Playwright v1.33.0 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
|
||||
- `:v1.33.0-jammy` - Playwright v1.33.0 release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
|
||||
- `:v1.33.0-focal` - Playwright v1.33.0 release docker image based on Ubuntu 20.04 LTS (Focal Fossa).
|
||||
- `:v%%VERSION%%` - Playwright v%%VERSION%% release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
|
||||
- `:v%%VERSION%%-jammy` - Playwright v%%VERSION%% release docker image based on Ubuntu 22.04 LTS (Jammy Jellyfish).
|
||||
- `:v%%VERSION%%-focal` - Playwright v%%VERSION%% release docker image based on Ubuntu 20.04 LTS (Focal Fossa).
|
||||
- `:sha-XXXXXXX` - docker image for every commit that changed
|
||||
docker files or browsers, marked with a [short sha](https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection#Short-SHA-1) (first 7 digits of the SHA commit).
|
||||
|
||||
|
|
@ -136,7 +136,15 @@ Browser builds for Firefox and WebKit are built for the [glibc](https://en.wikip
|
|||
|
||||
### Build the image
|
||||
|
||||
Use [`//utils/docker/build.sh`](https://github.com/microsoft/playwright/blob/main/utils/docker/build.sh) to build the image.
|
||||
To run Playwright inside Docker, you need to have Node.js, [Playwright browsers](./browsers.md#install-browsers) and [browser system dependencies](./browsers.md#install-system-dependencies) installed. See the following Dockerfile:
|
||||
|
||||
```Dockerfile
|
||||
FROM node:20-bookworm
|
||||
|
||||
RUN npx -y playwright@%%VERSION%% install --with-deps
|
||||
```
|
||||
|
||||
Note: official images published to [Microsoft Artifact Registry] are built using [`//utils/docker/build.sh`](https://github.com/microsoft/playwright/blob/main/utils/docker/build.sh) script.
|
||||
|
||||
```txt
|
||||
./utils/docker/build.sh jammy playwright:localbuild-jammy
|
||||
|
|
|
|||
|
|
@ -199,6 +199,7 @@ async function run() {
|
|||
'html',
|
||||
'bash',
|
||||
'sh',
|
||||
'Dockerfile',
|
||||
]);
|
||||
if (!allowedCodeLangs.has(node.codeLang.split(' ')[0]))
|
||||
throw new Error(`${path.relative(PROJECT_DIR, filePath)} contains code block with invalid code block language ${node.codeLang}`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue