Skip to content

Commit fca4bea

Browse files
Update evals Docker setup to work on Windows. (#4656)
1 parent 9b605c9 commit fca4bea

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

packages/evals/.docker/entrypoints/runner.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
# Set environment variable to suppress WSL install prompt for VS Code
4+
export DONT_PROMPT_WSL_INSTALL=1
5+
36
if [ $# -eq 0 ]; then
47
exec bash
58
else

packages/evals/Dockerfile.runner

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ ARG PYTHON_EXT_VERSION=2025.6.1
5959
ARG RUST_EXT_VERSION=0.3.2482
6060

6161
RUN mkdir -p /roo/.vscode-template \
62-
&& code --no-sandbox --user-data-dir /roo/.vscode-template --install-extension golang.go@${GOLANG_EXT_VERSION} \
63-
&& code --no-sandbox --user-data-dir /roo/.vscode-template --install-extension dbaeumer.vscode-eslint@${ESLINT_EXT_VERSION} \
64-
&& code --no-sandbox --user-data-dir /roo/.vscode-template --install-extension redhat.java@${JAVA_EXT_VERSION} \
65-
&& code --no-sandbox --user-data-dir /roo/.vscode-template --install-extension ms-python.python@${PYTHON_EXT_VERSION} \
66-
&& code --no-sandbox --user-data-dir /roo/.vscode-template --install-extension rust-lang.rust-analyzer@${RUST_EXT_VERSION}
62+
&& yes | code --no-sandbox --user-data-dir /roo/.vscode-template --install-extension golang.go@${GOLANG_EXT_VERSION} \
63+
&& yes | code --no-sandbox --user-data-dir /roo/.vscode-template --install-extension dbaeumer.vscode-eslint@${ESLINT_EXT_VERSION} \
64+
&& yes | code --no-sandbox --user-data-dir /roo/.vscode-template --install-extension redhat.java@${JAVA_EXT_VERSION} \
65+
&& yes | code --no-sandbox --user-data-dir /roo/.vscode-template --install-extension ms-python.python@${PYTHON_EXT_VERSION} \
66+
&& yes | code --no-sandbox --user-data-dir /roo/.vscode-template --install-extension rust-lang.rust-analyzer@${RUST_EXT_VERSION}
6767

6868
# Copy evals
6969
ARG EVALS_COMMIT=main
@@ -128,7 +128,7 @@ RUN cp -r /roo/.vscode-template /roo/.vscode
128128

129129
# Build the Roo Code extension
130130
RUN pnpm vsix -- --out ../bin/roo-code.vsix \
131-
&& code --no-sandbox --user-data-dir /roo/.vscode --install-extension bin/roo-code.vsix
131+
&& yes | code --no-sandbox --user-data-dir /roo/.vscode --install-extension bin/roo-code.vsix
132132

133133
# Copy entrypoint script
134134
COPY packages/evals/.docker/entrypoints/runner.sh /usr/local/bin/entrypoint.sh

packages/evals/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The initial build process can take a minute or two. Upon success you should see
3535
Additionally, you'll find in Docker Desktop that database and redis services are running:
3636
<img width="1283" alt="Screenshot 2025-06-05 at 12 07 09 PM" src="https://github.com/user-attachments/assets/ad75d791-9cc7-41e3-8168-df7b21b49da2" />
3737

38-
Navigate to [localhost:3000](http://localhost:3000/) in your browser and click the 🚀 button.
38+
Navigate to [localhost:3446](http://localhost:3446/) in your browser and click the 🚀 button.
3939

4040
By default a evals run will run all programming exercises in [Roo Code Evals](https://github.com/RooCodeInc/Roo-Code-Evals) repository with the Claude Sonnet 4 model and default settings. For basic configuration you can specify the LLM to use and any subset of the exercises you'd like. For advanced configuration you can import a Roo Code settings file which will allow you to run the evals with Roo Code configured any way you'd like (this includes custom modes, a footgun prompt, etc).
4141

packages/evals/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ services:
5656
context: ../../
5757
dockerfile: packages/evals/Dockerfile.web
5858
ports:
59-
- "${EVALS_WEB_PORT:-3000}:3000"
59+
- "${EVALS_WEB_PORT:-3446}:3000"
6060
environment:
6161
- HOST_EXECUTION_METHOD=docker
6262
volumes:

packages/evals/scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,5 +386,5 @@ if ! nc -z localhost 3000; then
386386
echo "💡 You can start it anytime with 'pnpm --filter @roo-code/web-evals dev'."
387387
fi
388388
else
389-
echo "👟 The evals web app is running at http://localhost:3000"
389+
echo "👟 The evals web app is running at http://localhost:3000 (or http://localhost:3446 if using Docker)"
390390
fi

0 commit comments

Comments
 (0)