UnixImageImpl
Defined in: packages/core/src/image.ts:35
Frozen, immutable system configuration. Multiple instances can boot from one image.
Remarks
Section titled “Remarks”An image is produced by UnixBuilder.build() and contains frozen
filesystem layers, merged env defaults, and service declarations. Boot via a runtime
(e.g., testRuntime().boot(image)) to create a live UnixInstance with a fresh
writable overlay on top of the frozen base.
Example
Section titled “Example”const image = await Unix().use(stdSystem()).build()// Boot multiple agents from the same imageconst a = await testRuntime().boot(image)const b = await testRuntime().boot(image)Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new UnixImageImpl(
init):UnixImageImpl
Defined in: packages/core/src/image.ts:42
Parameters
Section titled “Parameters”ImageInit
Returns
Section titled “Returns”UnixImageImpl
Properties
Section titled “Properties”buildCache
Section titled “buildCache”
readonlybuildCache:BuildCache
Defined in: packages/core/src/image.ts:40
layerStore
Section titled “layerStore”
readonlylayerStore:LayerStore
Defined in: packages/core/src/image.ts:38
Content-addressable store of all layers in this image.
Implementation of
Section titled “Implementation of”topLayerId
Section titled “topLayerId”
readonlytopLayerId:string|undefined
Defined in: packages/core/src/image.ts:39
ID of the topmost layer (most recent .run() step, or base). undefined only if image has no FS.
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”createBootContext()
Section titled “createBootContext()”createBootContext():
BootContext
Defined in: packages/core/src/image.ts:50
Create the boot context consumed by a runtime’s boot procedure.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”extend()
Section titled “extend()”extend():
UnixBuilder
Defined in: packages/core/src/image.ts:62
Derive a new UnixBuilder pre-loaded with this image’s frozen layers.