MCPcopy
hub / github.com/learnhouse/learnhouse / composeUp

Function composeUp

apps/cli/tests/helpers.ts:73–76  ·  view source on GitHub ↗
(cwd: string, env?: NodeJS.ProcessEnv)

Source from the content-addressed store, hash-verified

71
72/** Pull and start compose services, waiting for health checks */
73export function composeUp(cwd: string, env?: NodeJS.ProcessEnv): void {
74 spawnSync('docker', ['compose', 'pull'], { cwd, stdio: 'inherit', env: { ...process.env, ...env } })
75 spawnSync('docker', ['compose', 'up', '-d', '--wait'], { cwd, stdio: 'inherit', env: { ...process.env, ...env } })
76}
77
78/** Stop and remove compose containers + volumes */
79export function composeDown(cwd: string): void {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected