(options: { containerId?: string | null; composeProjectName?: string | null; doNotThrow?: boolean })
| 103 | return { outcome, containerId, composeProjectName, stderr: res.stderr }; |
| 104 | } |
| 105 | export async function devContainerDown(options: { containerId?: string | null; composeProjectName?: string | null; doNotThrow?: boolean }) { |
| 106 | if (options.containerId) { |
| 107 | await shellExec(`docker rm -f ${options.containerId}`, undefined, undefined, options.doNotThrow); |
| 108 | } |
| 109 | if (options.composeProjectName) { |
| 110 | await shellExec(`docker compose --project-name ${options.composeProjectName} down`, undefined, undefined, options.doNotThrow); |
| 111 | } |
| 112 | } |
| 113 | export async function devContainerStop(options: { containerId?: string | null; composeProjectName?: string | null }) { |
| 114 | if (options.containerId) { |
| 115 | await shellExec(`docker stop ${options.containerId}`); |
no test coverage detected