BuildImageOptions
Interface: BuildImageOptions
Defined in: packages/oci/src/image.ts:55
Options of buildImage
Extends
Properties
annotations?
optionalannotations?:Record<string,string>
Defined in: packages/oci/src/image.ts:87
Annotations of the manifests
baseImage
baseImage:
string
Defined in: packages/oci/src/image.ts:59
Base image reference, or SCRATCH
cmd?
optionalcmd?:string[]
Defined in: packages/oci/src/image.ts:75
Command, replaces the base one
createdBy?
optionalcreatedBy?:string
Defined in: packages/oci/src/image.ts:105
Description of the layer in the history
credentials?
optionalcredentials?:Record<string,RegistryCredentials>
Defined in: packages/oci/src/image.ts:37
Credentials per registry host, they take precedence over the Docker configuration
Inherited from
dockerConfig?
optionaldockerConfig?:any
Defined in: packages/oci/src/image.ts:41
Docker configuration, read from ~/.docker/config.json by default
Inherited from
entrypoint?
optionalentrypoint?:string[]
Defined in: packages/oci/src/image.ts:71
Entrypoint, replaces the base one
env?
optionalenv?:Record<string,string>
Defined in: packages/oci/src/image.ts:79
Environment variables, added to or replacing the base ones
exposedPorts?
optionalexposedPorts?:string[]
Defined in: packages/oci/src/image.ts:95
Exposed ports, 8080/tcp
fetch?
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: packages/oci/src/image.ts:49
fetch implementation, for tests
Call Signature
(
input,init?):Promise<Response>
Parameters
input
RequestInfo | URL
init?
RequestInit
Returns
Promise<Response>
Call Signature
(
input,init?):Promise<Response>
Parameters
input
string | Request | URL
init?
RequestInit
Returns
Promise<Response>
Inherited from
includeBaseLayers?
optionalincludeBaseLayers?:boolean
Defined in: packages/oci/src/image.ts:112
Copy the base layers into the layout so it is complete; the push copies them registry to registry otherwise
Default
true
insecureRegistries?
optionalinsecureRegistries?:string[]
Defined in: packages/oci/src/image.ts:45
Registries reached over plain http, localhost and 127.0.0.1 always are
Inherited from
RegistryOptions.insecureRegistries
labels?
optionallabels?:Record<string,string>
Defined in: packages/oci/src/image.ts:83
Labels of the configuration, added to the base ones
mtime?
optionalmtime?:number
Defined in: packages/oci/src/image.ts:101
Creation time of the image and modification time of the files, in seconds
Default
0
platforms?
optionalplatforms?:string[]
Defined in: packages/oci/src/image.ts:63
Platforms to build, linux/amd64 by default: several platforms produce an index
tags?
optionaltags?:string[]
Defined in: packages/oci/src/image.ts:116
Tags recorded in the layout index.json
user?
optionaluser?:string
Defined in: packages/oci/src/image.ts:91
User to run as, the base one when undefined
workdir?
optionalworkdir?:string
Defined in: packages/oci/src/image.ts:67
Working directory of the image