sdk: allow passing docker build arguments in service manifest (#2764)

* start-cli s9pk pack: silence mksquashfs output

* sdk: allow passing docker build arguments in service manifest

* merge EnvVar into BuildArg
This commit is contained in:
Remco Ros
2024-10-28 23:33:26 +01:00
committed by GitHub
parent 26ae0bf207
commit b952e3183f
4 changed files with 54 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type BuildArg = string | { env: string }

View File

@@ -1,6 +1,13 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { BuildArg } from "./BuildArg"
export type ImageSource =
| "packed"
| { dockerBuild: { workdir: string | null; dockerfile: string | null } }
| {
dockerBuild: {
workdir: string | null
dockerfile: string | null
buildArgs?: { [key: string]: BuildArg }
}
}
| { dockerTag: string }

View File

@@ -39,6 +39,7 @@ export { BindOptions } from "./BindOptions"
export { BindParams } from "./BindParams"
export { Blake3Commitment } from "./Blake3Commitment"
export { BlockDev } from "./BlockDev"
export { BuildArg } from "./BuildArg"
export { CallbackId } from "./CallbackId"
export { Category } from "./Category"
export { CheckDependenciesParam } from "./CheckDependenciesParam"