Skip to content

Commit 6d8dba3

Browse files
committed
More progress
1 parent 57bba0f commit 6d8dba3

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

apps/web-evals/src/lib/server/runs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function createRun({ suite, exercises = [], systemPrompt, ...values
4848
revalidatePath("/runs")
4949

5050
try {
51-
const isRunningInDocker = true // fs.existsSync("/.dockerenv")
51+
const isRunningInDocker = fs.existsSync("/.dockerenv")
5252

5353
const dockerArgs = [
5454
`--name evals-controller-${run.id}`,

packages/evals/Dockerfile.runner

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,20 @@ RUN pnpm install
113113
# Copy source code
114114
COPY . ./
115115

116+
# Validate that .env.local exists and is not empty
117+
RUN if [ ! -f "packages/evals/.env.local" ] || [ ! -s "packages/evals/.env.local" ]; then \
118+
echo "ERROR: packages/evals/.env.local is missing or empty. Please create it with your API keys before building."; \
119+
exit 1; \
120+
fi
121+
116122
# Copy ENV secrets
117123
COPY packages/evals/.env.local ./packages/evals/
118124

119125
# Copy the pre-installed VS Code extensions
120126
RUN cp -r /roo/.vscode-template /roo/.vscode
121127

122128
# Build the Roo Code extension
123-
RUN pnpm build -- --out ../bin/roo-code.vsix \
129+
RUN pnpm vsix -- --out ../bin/roo-code.vsix \
124130
&& code --no-sandbox --user-data-dir /roo/.vscode --install-extension bin/roo-code.vsix
125131

126132
# Copy entrypoint script

packages/evals/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ echo "OPENROUTER_API_KEY=sk-or-v1-[...]" > packages/evals/.env.local
2828
Start the evals service:
2929

3030
```sh
31-
cd packages/evals && docker compose --profile server up
31+
docker compose -f packages/evals/docker-compose.yml --profile server --profile runner up --build --scale runner=0
3232
```
3333

3434
Navigate to [localhost:3000](http://localhost:3000/) in your browser.

packages/evals/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ services:
7575
stdin_open: true
7676
tty: true
7777
profiles:
78-
- client
78+
- runner

0 commit comments

Comments
 (0)