forked from alibaba/sec-code-bench
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-eval.yml
More file actions
42 lines (40 loc) · 1.42 KB
/
docker-compose-eval.yml
File metadata and controls
42 lines (40 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Evaluation Runner (connects to shared verifiers)
#
# This file defines the sec-code-bench evaluation service that connects to
# the shared verifier network. Multiple instances can run in parallel.
#
# Prerequisites:
# - Verifiers must be running: docker compose -f docker-compose-verifiers.yml up -d
# - The 'secbench-verifier-net' network must exist
#
# Usage:
# # Run multiple evaluations in parallel with different project names
# docker compose -f docker-compose-eval.yml -p eval-model-a up
# docker compose -f docker-compose-eval.yml -p eval-model-b up
#
# # Or with different config files
# CONFIG_FILE=config-model-a.yaml docker compose -f docker-compose-eval.yml -p model-a up
# CONFIG_FILE=config-model-b.yaml docker compose -f docker-compose-eval.yml -p model-b up
#
# Environment variables:
# - CONFIG_FILE: Path to config.yaml (default: ./config.yaml)
# - LOCAL_RESULT_DIR: Directory for results (default: ./results)
services:
sec-code-bench:
image: sec-code-bench:v2.2
build:
context: .
dockerfile: Dockerfile
pull_policy: never
entrypoint: ["/entrypoint.sh"]
volumes:
- ./docker/entrypoint.sh:/entrypoint.sh:ro
- ${CONFIG_FILE:-./config.yaml}:/sec-code-bench/config.yaml:ro
- ${LOCAL_RESULT_DIR:-./results}:/dockershare
networks:
- secbench-verifier-net
restart: no
networks:
secbench-verifier-net:
external: true
name: secbench-verifier-net