sdk tweaks (#2858)

* sdk tweaks

* beta.20

* alpha.18
This commit is contained in:
Aiden McClelland
2025-04-07 13:55:38 -06:00
committed by GitHub
parent 6ecaeb4fde
commit 20d3b5288c
16 changed files with 139 additions and 61 deletions

View File

@@ -9,6 +9,7 @@ import { Manifest } from "./matchManifest"
import { DockerProcedureContainer } from "./DockerProcedureContainer"
import * as cp from "child_process"
import { Effects } from "../../../Models/Effects"
import { Mounts } from "@start9labs/start-sdk/package/lib/mainFn/Mounts"
export const execFile = promisify(cp.execFile)
export const polyfillEffects = (
effects: Effects,
@@ -111,7 +112,7 @@ export const polyfillEffects = (
effects,
{ imageId: manifest.main.image },
commands,
{},
{ mounts: Mounts.of() },
commands.join(" "),
)
.then((x: any) => ({
@@ -168,17 +169,12 @@ export const polyfillEffects = (
{ imageId: manifest.main.image },
commands,
{
mounts: [
{
mountpoint: "/drive",
options: {
type: "volume",
id: input.volumeId,
subpath: null,
readonly: false,
},
},
],
mounts: Mounts.of().addVolume(
input.volumeId,
null,
"/drive",
false,
),
},
commands.join(" "),
)
@@ -210,17 +206,12 @@ export const polyfillEffects = (
{ imageId: manifest.main.image },
commands,
{
mounts: [
{
mountpoint: "/drive",
options: {
type: "volume",
id: input.volumeId,
subpath: null,
readonly: false,
},
},
],
mounts: Mounts.of().addVolume(
input.volumeId,
null,
"/drive",
false,
),
},
commands.join(" "),
)