Files
pipewright/examples/hardening/pipewright.boat.yaml
T

36 lines
1.3 KiB
YAML

# Same graphs, sandboxes on boat.dev VMs: Docker containers placed on a host pool of
# up to 2 "large" VMs (8 vCPU / 16 GB), each container reserving 2 CPUs / 3 GB and
# requiring /dev/kvm. The model stays the offline fake (only the sandboxes are remote).
#
# pw run examples/hardening/graph_build.py --project examples/hardening/pipewright.boat.yaml
# pw hosts down --dir examples/hardening --project examples/hardening/pipewright.boat.yaml
store: .pipewright-boat
providers:
fake: {type: fake, script: hardening_fakes:respond}
models:
generator: {provider: fake, model: fake-generator}
solver: {provider: fake, model: fake-solver}
hosts:
boat:
type: boat # pipewright.contrib.boat (entry point)
api_key: {file: ~/.config/deepswe-eval/secrets, var: BOAT_API_KEY}
vm_type: large
min: 0
max: 2
ttl: 3600
idle_shutdown: 60
reserve: {cpus: 0.5, memory: 1g}
docker_kvm_runtime: true
budget: {hours: 2}
persist: true # keep VMs between the two graphs' runs; `pw hosts down` deletes them
sandboxes:
sandbox:
type: docker
hosts: boat
image: python:3.12-slim
cpus: 2
memory: 3g
requires: {kvm: true}
harnesses:
solver: {type: builtin, model: solver, max_turns: 12}