From c0a5e05a32f9ba395e03abbc49092a58c63d9039 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 9 Mar 2024 23:26:59 +0900 Subject: [PATCH] remove docker-playwright --- docker-playwright/README.md | 26 -------------------------- docker-playwright/docker-compose.yml | 8 -------- 2 files changed, 34 deletions(-) delete mode 100644 docker-playwright/README.md delete mode 100644 docker-playwright/docker-compose.yml diff --git a/docker-playwright/README.md b/docker-playwright/README.md deleted file mode 100644 index 78f3018..0000000 --- a/docker-playwright/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# デスクトップ環境で Docker イメージを使って Playwright のブラウザーを起動してみる - -WebKit の環境が必要だったので構築してみた。 - -Ubuntu ならば Playwright が公式にサポートしているためホントは不要だが、環境を汚さないので便利かもしれないと思った。 - -## 前提 - -- Docker -- X11 の UNIX ドメインソケットが/tmp/.X11-unix に存在すること - -## やり方 - -```sh -docker run --rm -it -u $(id -u):$(id -g) -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix mcr.microsoft.com/playwright npx playwright wk example.com -``` - -Digest: `sha256:310e3ca5bb884f4b9a4a8452dbabda4a35ac62a0d6f46eee953558e8d7d4cfb0` - -### Docker Compose の場合 - -```bash -echo UID=$(id -u) >> .env -echo GID=$(id -g) >> .env -docker-compose up -``` diff --git a/docker-playwright/docker-compose.yml b/docker-playwright/docker-compose.yml deleted file mode 100644 index 584b0cc..0000000 --- a/docker-playwright/docker-compose.yml +++ /dev/null @@ -1,8 +0,0 @@ -version: "3" -services: - playwright: - image: mcr.microsoft.com/playwright - user: "${UID}:${GID}" - environment: [DISPLAY] - volumes: ["/tmp/.X11-unix:/tmp/.X11-unix"] - command: npx playwright wk example.com