- deployments + deployment_logs tables; desired/actual state reconciled by the worker (create/start/stop/remove via the socket proxy, /health wait, log follower, stats, memory guard, adopt/remove containers on restart). - Pure command builder for llama-server and vllm serve (mmproj, MTP draft, KV cache types, dtype, KV cache size) with tests; file candidates per engine with tests. - New main menu entry Deployments: list, new/edit form (runtime -> model and files -> launch options, live command preview), detail page with stats, log, endpoint and a streaming chat smoke test. Not yet tested end-to-end against real containers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
import type { Metadata } from "next";
|
|
import Link from "next/link";
|
|
import { buttonVariants } from "@/components/ui/button";
|
|
import { listDeployments } from "@/lib/deployments";
|
|
import { getDockerInfo } from "@/lib/runtimes";
|
|
import { DeploymentList } from "./deployment-list";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
export const metadata: Metadata = { title: "Deployments" };
|
|
|
|
export default async function DeploymentsPage() {
|
|
const [rows, docker] = await Promise.all([listDeployments(), getDockerInfo()]);
|
|
return (
|
|
<div className="flex flex-col gap-4">
|
|
<div className="flex items-center justify-between">
|
|
<h1 className="text-xl font-semibold">Deployments</h1>
|
|
<Link href="/deployments/new" className={buttonVariants()}>
|
|
New deployment
|
|
</Link>
|
|
</div>
|
|
{!docker?.connected && (
|
|
<p className="rounded-lg bg-amber-500/10 px-4 py-3 text-sm text-amber-800 dark:text-amber-200">
|
|
{docker ? `Docker isn't reachable: ${docker.error}` : "Docker isn't connected, so deployments can't start."} See{" "}
|
|
<Link href="/settings/runtimes" className="underline">
|
|
Settings → Runtimes
|
|
</Link>
|
|
.
|
|
</p>
|
|
)}
|
|
<DeploymentList rows={JSON.parse(JSON.stringify(rows))} />
|
|
</div>
|
|
);
|
|
}
|