MCPcopy
hub / github.com/Dokploy/dokploy / verifySetup

Function verifySetup

packages/server/src/utils/gpu-setup.ts:333–352  ·  view source on GitHub ↗
(nodeId: string, serverId?: string)

Source from the content-addressed store, hash-verified

331};
332
333const verifySetup = async (nodeId: string, serverId?: string) => {
334 const finalStatus = await checkGPUStatus(serverId);
335
336 if (!finalStatus.swarmEnabled) {
337 const diagnosticCommands = [
338 `docker node inspect ${nodeId}`,
339 'nvidia-smi -a | grep "GPU UUID"',
340 "cat /etc/docker/daemon.json",
341 "cat /etc/nvidia-container-runtime/config.toml",
342 ].join(" && ");
343
344 await (serverId
345 ? execAsyncRemote(serverId, diagnosticCommands)
346 : execAsync(diagnosticCommands));
347
348 throw new Error("GPU support not detected in swarm after setup");
349 }
350
351 return finalStatus;
352};

Callers 1

setupGPUSupportFunction · 0.85

Calls 3

execAsyncRemoteFunction · 0.90
execAsyncFunction · 0.90
checkGPUStatusFunction · 0.85

Tested by

no test coverage detected