Skip to main content

BuildImageOptions

@webda/oci


Interface: BuildImageOptions

Defined in: packages/oci/src/image.ts:55

Options of buildImage

Extends​

Properties​

annotations?​

optional annotations?: 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?​

optional cmd?: string[]

Defined in: packages/oci/src/image.ts:75

Command, replaces the base one


createdBy?​

optional createdBy?: string

Defined in: packages/oci/src/image.ts:105

Description of the layer in the history


credentials?​

optional credentials?: Record<string, RegistryCredentials>

Defined in: packages/oci/src/image.ts:37

Credentials per registry host, they take precedence over the Docker configuration

Inherited from​

RegistryOptions.credentials


dockerConfig?​

optional dockerConfig?: any

Defined in: packages/oci/src/image.ts:41

Docker configuration, read from ~/.docker/config.json by default

Inherited from​

RegistryOptions.dockerConfig


entrypoint?​

optional entrypoint?: string[]

Defined in: packages/oci/src/image.ts:71

Entrypoint, replaces the base one


env?​

optional env?: Record<string, string>

Defined in: packages/oci/src/image.ts:79

Environment variables, added to or replacing the base ones


exposedPorts?​

optional exposedPorts?: string[]

Defined in: packages/oci/src/image.ts:95

Exposed ports, 8080/tcp


fetch?​

optional fetch?: {(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>

MDN Reference

Parameters​
input​

RequestInfo | URL

init?​

RequestInit

Returns​

Promise<Response>

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

string | Request | URL

init?​

RequestInit

Returns​

Promise<Response>

Inherited from​

RegistryOptions.fetch


includeBaseLayers?​

optional includeBaseLayers?: 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?​

optional insecureRegistries?: 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?​

optional labels?: Record<string, string>

Defined in: packages/oci/src/image.ts:83

Labels of the configuration, added to the base ones


mtime?​

optional mtime?: 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?​

optional platforms?: string[]

Defined in: packages/oci/src/image.ts:63

Platforms to build, linux/amd64 by default: several platforms produce an index


tags?​

optional tags?: string[]

Defined in: packages/oci/src/image.ts:116

Tags recorded in the layout index.json


user?​

optional user?: string

Defined in: packages/oci/src/image.ts:91

User to run as, the base one when undefined


workdir?​

optional workdir?: string

Defined in: packages/oci/src/image.ts:67

Working directory of the image