Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JacobLinCool/playwright-docker
Playwright Docker Images. (Ubuntu, Alpine) x (ARMv8, x64) x (Chromium, Firefox, WebKit, Chrome, Edge)
https://github.com/JacobLinCool/playwright-docker
docker playwright
Last synced: about 2 months ago
JSON representation
Playwright Docker Images. (Ubuntu, Alpine) x (ARMv8, x64) x (Chromium, Firefox, WebKit, Chrome, Edge)
- Host: GitHub
- URL: https://github.com/JacobLinCool/playwright-docker
- Owner: JacobLinCool
- License: mit
- Created: 2022-08-01T20:01:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-08T09:11:06.000Z (11 months ago)
- Last Synced: 2024-08-17T08:04:56.988Z (5 months ago)
- Topics: docker, playwright
- Language: JavaScript
- Homepage: https://hub.docker.com/r/jacoblincool/playwright/
- Size: 43.9 KB
- Stars: 37
- Watchers: 3
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Playwright Docker Images
multi-arch x multi-browser
View on Docker Hub: [https://hub.docker.com/r/jacoblincool/playwright/](https://hub.docker.com/r/jacoblincool/playwright/)
## Tags
- `jacoblincool/playwright:base` - Ubuntu Jammy, Node 20, Playwright
- `jacoblincool/playwright:chromium` - Ubuntu Jammy, Node 20, Playwright, Chromium
- `jacoblincool/playwright:firefox` - Ubuntu Jammy, Node 20, Playwright, Firefox
- `jacoblincool/playwright:webkit` - Ubuntu Jammy, Node 20, Playwright, WebKit
- `jacoblincool/playwright:chrome` - Ubuntu Jammy, Node 20, Playwright, Chrome
- `jacoblincool/playwright:msedge` - Ubuntu Jammy, Node 20, Playwright, Edge
- `jacoblincool/playwright:all` - Ubuntu Jammy, Node 20, Playwright, All Browsers### Lightweight Images
- `jacoblincool/playwright:base-light` - Alpine 3.20, Node 23, Playwright
- `jacoblincool/playwright:chromium-light` - Alpine 3.20, Node 23, Playwright, Chromium### Playwright Servers
Those images are running Playwright Server and expose the WebSocket endpoint, see [./server](./server) for more details.
- `jacoblincool/playwright:chromium-server`
- `jacoblincool/playwright:firefox-server`
- `jacoblincool/playwright:webkit-server`
- `jacoblincool/playwright:chrome-server`
- `jacoblincool/playwright:msedge-server`
- `jacoblincool/playwright:chromium-light-server`The default endpoint is `ws://localhost:53333/playwright`, you can override it by setting the `BROWSER_PORT` and `BROWSER_WS_ENDPOINT` environment variables.
They can be run using the following command:
```sh
docker run --rm -p 53333:53333 jacoblincool/playwright:chromium-light-server
```#### Connect to server using Playwright
##### Javascript
```javascript
import { chromium } from "playwright";
const browser = await chromium.connect("ws://localhost:53333/playwright");
```##### Python
In [examples](https://playwright.dev/python/docs/api/class-playwright) replace (`BrowserType` method) `launch` with `connect`
```python
import asyncio
import playwright.async_api as playwrightasync def main():
async with playwright.async_playwright() as playwright:
browser: playwright.Browser = playwright.chromium.connect("ws://localhost:53333/playwright")asyncio.run(main())
```## Supported Architectures
| Browser | ARMv8 (`aarch64`) | AMD64 (`x86_64`) |
| -------- | :---------------: | :--------------: |
| Chromium | ✅ | ✅ |
| Firefox | ✅ | ✅ |
| WebKit | ✅ | ✅ |
| Chrome | ❌ | ✅ |
| Edge | ❌ | ✅ |### Lightweight Image Architectures
| Browser | ARMv8 (`aarch64`) | AMD64 (`x86_64`) |
| -------- | :---------------: | :--------------: |
| Chromium | ✅ | ✅ |## Sources
GitHub: