MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / stopSelfhostContainer

Function stopSelfhostContainer

e2e/setup/selfhost-docker.boot.ts:140–148  ·  view source on GitHub ↗
(port: number, logFile?: string)

Source from the content-addressed store, hash-verified

138 * container. The volume stays — it's the deployment's persistent data.
139 */
140export const stopSelfhostContainer = async (port: number, logFile?: string): Promise<void> => {
141 const name = selfhostDockerContainerName(port);
142 await exec("docker", ["stop", name]).catch(() => {});
143 if (logFile) {
144 const { stdout } = await exec("docker", ["logs", name]).catch(() => ({ stdout: "" }));
145 if (stdout) appendFileSync(logFile, stdout);
146 }
147 await exec("docker", ["rm", "-f", name]).catch(() => {});
148};
149
150export const bootSelfhostDocker = async (
151 options: SelfhostDockerBootOptions,

Callers 2

selfhostDockerTargetFunction · 0.90
bootSelfhostDockerFunction · 0.85

Calls 1

Tested by

no test coverage detected