mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
[3e552255] feat(docker): re-add Playwright chromium-headless-shell to QA images
This commit is contained in:
@@ -7,6 +7,17 @@ USER root
|
||||
|
||||
RUN npm install -g pnpm
|
||||
|
||||
# Playwright + chromium-headless-shell (not full chromium) for FE QA's
|
||||
# browser-based rendering/a11y checks — scoped to this image so agent-dev-fe
|
||||
# stays lean. Browsers land in /app/.playwright (not /app/.venv) so the
|
||||
# closing chown only touches this new ~small dir, never the pre-owned .venv
|
||||
# tree (a chown -R over .venv would COW-duplicate the whole thing into this
|
||||
# layer — see the 0.19.0 lean-images CHANGELOG note on agent-grok's chown -R).
|
||||
ENV PLAYWRIGHT_BROWSERS_PATH=/app/.playwright
|
||||
RUN uv pip install --python /app/.venv/bin/python playwright \
|
||||
&& /app/.venv/bin/playwright install --with-deps chromium-headless-shell \
|
||||
&& chown -R agent:agent /app/.playwright
|
||||
|
||||
USER agent
|
||||
|
||||
LABEL role="frontend-qa"
|
||||
|
||||
@@ -8,5 +8,21 @@ FROM roboco-agent-base
|
||||
# - Image generation tools
|
||||
# - Design token management
|
||||
|
||||
USER root
|
||||
|
||||
# Playwright + chromium-headless-shell for UX-QA's browser-based design/
|
||||
# rendering verification. No dedicated ux-qa image exists — ux-qa runs this
|
||||
# same image as ux-dev (see orchestrator.py IMAGE_MAP), so ux-dev picks this
|
||||
# up too. Browsers land in /app/.playwright (not /app/.venv) so the closing
|
||||
# chown only touches this new dir, never the pre-owned .venv tree (a
|
||||
# chown -R over .venv would COW-duplicate the whole thing into this layer —
|
||||
# see the 0.19.0 lean-images CHANGELOG note on agent-grok's chown -R).
|
||||
ENV PLAYWRIGHT_BROWSERS_PATH=/app/.playwright
|
||||
RUN uv pip install --python /app/.venv/bin/python playwright \
|
||||
&& /app/.venv/bin/playwright install --with-deps chromium-headless-shell \
|
||||
&& chown -R agent:agent /app/.playwright
|
||||
|
||||
USER agent
|
||||
|
||||
LABEL role="ux-designer"
|
||||
LABEL description="UX/UI agent - design, prototyping, design system"
|
||||
|
||||
Reference in New Issue
Block a user