Repository navigation
fix(ralphex-fe): use system Chromium to eliminate Playwright version mismatch - #70
Merged
Merged
Conversation
…mium - Install chromium + fonts-freefont-ttf via apt instead of npx playwright install - Set PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 and PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH - Expand init-docker.sh MCP patch to all architectures with --executable-path and --no-sandbox - Fix CI verify steps: chromium-browser → chromium (Debian Trixie binary name) - Update dockerfile.md to document system Chromium approach Eliminates 8+ minute browser re-downloads caused by @playwright/mcp@latest depending on alpha playwright-core versions that differ from build-time cache. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The chromium Debian package pulls in systemd, which creates systemd-network with GID 998. Use groupadd -f to exit successfully when the GID is already taken.
systemd (pulled by chromium) claims both GID 998 and 999. Use groupadd -f for both ping and docker groups.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Replace Playwright-managed browser downloads with Debian's system Chromium, using
--executable-pathto bypass Playwright's version-coupled browser management.Why
The image cached Chromium for
playwright@1.58.2(revision 1208) at build time, but@playwright/mcp@latestdepends onplaywright-core@1.60.0-alpha(revision 1217) at runtime — causing an 8+ minute browser re-download on every container start. This is structurally unfixable with version pinning because@playwright/mcpuses alpha Playwright builds that change nearly every release (43 of 63 releases used different versions).Changes
ARG PLAYWRIGHT_VERSIONandnpx playwright installsteps; addchromium+fonts-freefont-ttfto the apt-get block; setPLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1andPLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium--executable-path /usr/bin/chromiumand--no-sandboxflagschromium-browser→chromium(correct binary name for Debian Trixie).claude/rules/dockerfile.mdto document the system Chromium approach for both Debian and AlpineNotes
--executable-pathis officially supported by@playwright/mcp(source)docs/plans/2026-04-01-fix-playwright-chromium-mismatch.md