Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion agents/autowebcompat-repro/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ FROM base AS agent
# for Testing via the Chrome-for-Testing JSON API (see browser.py).
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
sudo \
# Node.js, to run the Firefox and Chrome DevTools MCP servers.
nodejs npm \
# Shared by both browsers.
Expand All @@ -47,6 +48,9 @@ RUN apt-get update \
fonts-liberation \
# Codecs and audio/video related dependencies
ffmpeg \
# Window manager and display backend
fluxbox \
xvfb \
&& rm -rf /var/lib/apt/lists/*

# Install the DevTools MCP servers and Puppeteer from the pinned
Expand All @@ -63,7 +67,14 @@ COPY agents/autowebcompat-repro/hackbot.toml /app/hackbot.toml

RUN useradd --create-home --shell /bin/bash agent \
&& mkdir -p /workspace \
&& chown agent:agent /workspace /app/repro
&& chown agent:agent /workspace /app/repro \
&& usermod -a -G sudo agent \
&& echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers

ENV SCREEN_WIDTH=1280
ENV SCREEN_HEIGHT=1024
ENV SCREEN_DEPTH=24
ENV DISPLAY=:99.0

USER agent

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class AgentInputs(BaseSettings):
| Literal["max"]
| None
) = None
headless: bool = False

model_config = SettingsConfigDict(extra="ignore")

Expand Down Expand Up @@ -66,6 +67,7 @@ async def main(ctx: HackbotContext) -> AutowebcompatResult:
effort=inputs.effort,
log=ctx.log_path,
verbose=True,
headless=inputs.headless,
),
tracker,
input_data,
Expand Down
Loading