启动一个新容器后,无法通过命令行运行 qunit,执行 d/rake plugin:qunit\["some-plugin"\] 时会报错:“chrome is not installed”。
在容器内安装 Chrome 会导致浏览器因沙箱模式而提前退出。使用 CI=1 会因其他原因失败;我最终让 QUnit 跑起来的唯一方法是安装 Chromium,并创建一个 google-chrome-stable 的 shim,使其调用 chromium --no-sandbox。
使用 playwright 脚本安装浏览器仍然无法找到 Chrome(pnpm exec playwright install --with-deps)。