- docker-proxy service (tecnativa/docker-socket-proxy) in both compose files; worker uses it via DOCKER_HOST with a dependency-free client. - runtimes table with presets (llama.cpp CPU, vLLM CPU) and custom images; validation of image refs, env, args, devices (/dev/dri, /dev/kfd). - Worker reports Docker/CPU/memory facts and detects its network and models mount; pulls images with progress; image state per runtime. - Settings -> Runtimes page with host card, list, editor, pull/update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
565 B
TypeScript
13 lines
565 B
TypeScript
import type { Metadata } from "next";
|
|
import { getDockerInfo, listRuntimes } from "@/lib/runtimes";
|
|
import { getWorkerStatus } from "@/lib/worker-status";
|
|
import { RuntimesView } from "./runtimes-view";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
export const metadata: Metadata = { title: "Runtimes · Settings" };
|
|
|
|
export default async function RuntimesPage() {
|
|
const [runtimes, docker, worker] = await Promise.all([listRuntimes(), getDockerInfo(), getWorkerStatus()]);
|
|
return <RuntimesView runtimes={runtimes} docker={docker} workerOnline={worker.online} />;
|
|
}
|