Release / release (push) Successful in 12m32s
Kaname keeps two jobs: the model downloader and benchmarks. Benchmarks now run against endpoints (any OpenAI-compatible server added by URL, with an optional server-side API key and hand-written hardware notes) instead of deployments Kaname started itself. Removed: runtimes, deployments, sweeps, resource telemetry, hardware detection, the /api/v1 API with tokens and guardrails, and all Docker access. The quality eval's coding tests run in a network-less sandbox container that shares only an exchange folder with the worker. The previous state is kept in branch backup / tag backup-0.14.3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.5 KiB
YAML
46 lines
1.5 KiB
YAML
# Kaname: put this file and a filled-in .env (from .env.example) in one folder, then
|
|
# mkdir -p data models && sudo chown 1000:1000 data models
|
|
# docker compose up -d
|
|
name: kaname
|
|
|
|
services:
|
|
worker:
|
|
image: git.linxweiler.xyz/pascallinxweiler/kaname:${KANAME_VERSION:-latest}
|
|
command: worker
|
|
env_file: .env
|
|
environment:
|
|
SANDBOX_DIR: /sandbox
|
|
volumes:
|
|
- ${KANAME_DATA_DIR:-./data}:/data # SQLite DB, shared with web (local disk, not NFS)
|
|
- ${KANAME_MODELS_DIR:-./models}:/models # downloaded models (a host-mounted NAS share works)
|
|
- sandbox:/sandbox # exchange folder with the code sandbox
|
|
restart: unless-stopped
|
|
|
|
web:
|
|
image: git.linxweiler.xyz/pascallinxweiler/kaname:${KANAME_VERSION:-latest}
|
|
env_file: .env
|
|
ports: ["${WEB_PORT:-3000}:3000"]
|
|
volumes:
|
|
- ${KANAME_DATA_DIR:-./data}:/data
|
|
restart: unless-stopped
|
|
|
|
# Runs the quality eval's coding answers (Python written by the model under test) with no
|
|
# network, a read-only root, no capabilities and small limits. It shares only the exchange folder
|
|
# with the worker. Optional: without it the quality eval skips the coding section.
|
|
sandbox:
|
|
image: git.linxweiler.xyz/pascallinxweiler/kaname:${KANAME_VERSION:-latest}
|
|
command: sandbox
|
|
network_mode: none
|
|
read_only: true
|
|
tmpfs: ["/tmp:size=64m,mode=1777"]
|
|
cap_drop: [ALL]
|
|
security_opt: ["no-new-privileges:true"]
|
|
mem_limit: 512m
|
|
pids_limit: 64
|
|
cpus: 1
|
|
volumes: [sandbox:/sandbox]
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
sandbox:
|