MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / execute

Method execute

src/tools/docker/docker-tools.ts:118–124  ·  view source on GitHub ↗
(a: z.infer<typeof BuildArgs>)

Source from the content-addressed store, hash-verified

116 description = 'Build a Docker image from a Dockerfile. Destructive (writes an image). For very long builds, consider background_job_start instead so it does not block.';
117 isReadOnly = false; isDestructive = true; argsSchema = BuildArgs;
118 async execute(a: z.infer<typeof BuildArgs>): Promise<ToolResult> {
119 const args = ['build'];
120 if (a.tag) args.push('-t', a.tag);
121 if (a.dockerfile) args.push('-f', a.dockerfile);
122 args.push(a.context ?? '.');
123 return docker(args, (a.timeout_seconds ?? 600) * 1000);
124 }
125}
126
127// ---- docker_compose ----

Callers

nothing calls this directly

Calls 2

dockerFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected