Fix verification container execution

This commit is contained in:
ejclaw
2026-04-08 04:27:50 +09:00
parent 715e4e2f9a
commit ead7c32870
3 changed files with 61 additions and 6 deletions

View File

@@ -54,8 +54,16 @@ export function writableMountArgs(
return ['-v', `${hostPath}:${containerPath}`];
}
export function tmpfsMountArgs(containerPath: string): string[] {
return ['--tmpfs', containerPath];
export function tmpfsMountArgs(
containerPath: string,
options?: string | string[],
): string[] {
if (!options || (Array.isArray(options) && options.length === 0)) {
return ['--tmpfs', containerPath];
}
const optionText = Array.isArray(options) ? options.join(',') : options;
return ['--tmpfs', `${containerPath}:${optionText}`];
}
export function stopContainer(name: string): string {