sandboxbox 2.5.2 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ export function buildCommand(dockerfilePath) {
|
|
|
34
34
|
cwd: dirname(dockerfilePath),
|
|
35
35
|
shell: process.platform === 'win32',
|
|
36
36
|
windowsHide: process.platform === 'win32',
|
|
37
|
-
timeout:
|
|
37
|
+
timeout: 300000 // 5 minutes for container builds
|
|
38
38
|
});
|
|
39
39
|
console.log(color('green', '\n✅ Container built successfully!'));
|
|
40
40
|
return true;
|
|
@@ -102,7 +102,12 @@ export function runCommand(projectDir, cmd = 'bash') {
|
|
|
102
102
|
}).trim();
|
|
103
103
|
console.log(output);
|
|
104
104
|
} else {
|
|
105
|
-
|
|
105
|
+
// For longer-running commands, use extended timeout
|
|
106
|
+
const longRunningOptions = {
|
|
107
|
+
...containerOptions,
|
|
108
|
+
timeout: 600000 // 10 minutes for longer operations
|
|
109
|
+
};
|
|
110
|
+
execSync(`"${podmanPath}" run --rm -it ${mounts.join(' ')} -w /workspace sandboxbox:latest ${cmd}`, longRunningOptions);
|
|
106
111
|
}
|
|
107
112
|
|
|
108
113
|
cleanup();
|
|
@@ -213,7 +218,7 @@ export function shellCommand(projectDir) {
|
|
|
213
218
|
stdio: process.platform === 'win32' ? ['pipe', 'pipe', 'pipe'] : 'inherit',
|
|
214
219
|
shell: process.platform === 'win32',
|
|
215
220
|
windowsHide: process.platform === 'win32',
|
|
216
|
-
timeout:
|
|
221
|
+
timeout: 600000 // 10 minutes for interactive shell sessions
|
|
217
222
|
});
|
|
218
223
|
|
|
219
224
|
cleanup();
|