(image: string)
| 103 | // docker does not allow container names to contain ':' or '/', so we |
| 104 | // parse those out to shorten the name |
| 105 | function parseImageName(image: string): string { |
| 106 | const [fullName, tag] = image.split(':'); |
| 107 | const name = fullName.split('/').at(-1) ?? 'unknown-image'; |
| 108 | return tag ? `${name}-${tag}` : name; |
| 109 | } |
| 110 | |
| 111 | function ports(): string[] { |
| 112 | return (process.env['SANDBOX_PORTS'] ?? '') |