BuildImageOptions
Interface: BuildImageOptions
Defined in: packages/oci/src/image.ts:68
Options of buildImage
Extends
Properties
annotations?
optionalannotations?:Record<string,string>
Defined in: packages/oci/src/image.ts:100
Annotations of the manifests
baseImage
baseImage:
string
Defined in: packages/oci/src/image.ts:72
Base image reference, or SCRATCH
cmd?
optionalcmd?:string[]
Defined in: packages/oci/src/image.ts:88
Command, replaces the base one
createdBy?
optionalcreatedBy?:string
Defined in: packages/oci/src/image.ts:118
Description of the layer in the history
credentials?
optionalcredentials?:Record<string,RegistryCredentials>
Defined in: packages/oci/src/image.ts:50
Credentials per registry host, they take precedence over the Docker configuration
Inherited from
dockerConfig?
optionaldockerConfig?:any
Defined in: packages/oci/src/image.ts:54
Docker configuration, read from ~/.docker/config.json by default
Inherited from
entrypoint?
optionalentrypoint?:string[]
Defined in: packages/oci/src/image.ts:84
Entrypoint, replaces the base one
env?
optionalenv?:Record<string,string>
Defined in: packages/oci/src/image.ts:92
Environment variables, added to or replacing the base ones
exposedPorts?
optionalexposedPorts?:string[]
Defined in: packages/oci/src/image.ts:108
Exposed ports, 8080/tcp
fetch?
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: packages/oci/src/image.ts:62
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:125
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:58
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:96
Labels of the configuration, added to the base ones
mtime?
optionalmtime?:number
Defined in: packages/oci/src/image.ts:114
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:76
Platforms to build, linux/amd64 by default: several platforms produce an index
tags?
optionaltags?:string[]
Defined in: packages/oci/src/image.ts:129
Tags recorded in the layout index.json
user?
optionaluser?:string
Defined in: packages/oci/src/image.ts:104
User to run as, the base one when undefined
workdir?
optionalworkdir?:string
Defined in: packages/oci/src/image.ts:80
Working directory of the image