@opengeni/runtime 0.13.12 → 0.13.13
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/dist/index.js
CHANGED
package/dist/sandbox/index.js
CHANGED
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
withToolspaceTokenClient,
|
|
171
171
|
withToolspaceTokenEnvironment,
|
|
172
172
|
withToolspaceTokenSession
|
|
173
|
-
} from "../chunk-
|
|
173
|
+
} from "../chunk-3NUSY22C.js";
|
|
174
174
|
import "../chunk-4YJ5Z52Z.js";
|
|
175
175
|
import "../chunk-K4V4QYCL.js";
|
|
176
176
|
import "../chunk-PZ5AY32C.js";
|
package/package.json
CHANGED
package/src/sandbox/index.ts
CHANGED
|
@@ -536,14 +536,14 @@ function withDockerNetwork(client: SandboxClient, network: string | undefined):
|
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
async function connectDockerNetwork(network: string, containerId: string): Promise<void> {
|
|
539
|
-
const
|
|
540
|
-
|
|
541
|
-
|
|
539
|
+
const { spawnSync } = await import("node:child_process");
|
|
540
|
+
const result = spawnSync("docker", ["network", "connect", network, containerId], {
|
|
541
|
+
encoding: "utf8",
|
|
542
542
|
});
|
|
543
|
-
if (result.
|
|
543
|
+
if (result.status === 0) {
|
|
544
544
|
return;
|
|
545
545
|
}
|
|
546
|
-
const stderr =
|
|
546
|
+
const stderr = result.stderr ?? result.error?.message ?? "";
|
|
547
547
|
if (stderr.includes("already exists")) {
|
|
548
548
|
return;
|
|
549
549
|
}
|