ImageArgs class
The set of arguments for Image. The set of arguments for Image.
Constructors
-
ImageArgs({Input<
List< ? addHosts, Input<String> >Map< ? buildArgs, Input<String, String> >bool> ? buildOnPreview, Input<BuilderConfig> ? builder, Input<List< ? cacheFrom, Input<CacheFrom> >List< ? cacheTo, Input<CacheTo> >BuildContext> ? context, Input<Dockerfile> ? dockerfile, Input<bool> ? exec, Input<List< ? exports, Input<Export> >List< ? ignoreSecretsInDiffCalculation, Input<String> >Map< ? labels, Input<String, String> >bool> ? load, Input<NetworkMode> ? network, Input<bool> ? noCache, Input<List< ? platforms, Input<Platform> >bool> ? pull, required Input<bool> push, Input<List< ? registries, Input<Registry> >Map< ? secrets, Input<String, String> >List< ? ssh, Input<SSH> >List< ? tags, Input<String> >String> ? target}) -
Creates a new ImageArgs.
addHostsCustomhost:ipmappings to use during the build.buildArgsARGnames and values to set during the build.buildOnPreviewSetting this tofalsewill always skip image builds during previews,builderBuilder configuration.cacheFromCache export configuration.cacheToCache import configuration.contextBuild context settings. Defaults to the current directory.dockerfileDockerfile settings.execUseexecmode to build this image.exportsControls where images are persisted after building.ignoreSecretsInDiffCalculationA list of secret names to ignore when calculating diffs.labelsAttach arbitrary key/value metadata to the image.loadWhentruethe build will automatically include adockerexport.networkSet the network mode forRUNinstructions. Defaults todefault.noCacheDo not import cache manifests when building the image.platformsSet target platform(s) for the build. Defaults to the host's platform.pullAlways pull referenced images.pushWhentruethe build will automatically include aregistryexport.registriesRegistry credentials. Required if reading or exporting to privatesecretsA mapping of secret names to their corresponding values.sshSSH agent socket or keys to expose to the build.tagsName and optionally a tag (format:name:tag).targetSet the target build stage(s) to build.const -
ImageArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
addHosts
→ Input<
List< ?String> > -
Custom
host:ipmappings to use during the build.final -
buildArgs
→ Input<
Map< ?String, String> > -
ARGnames and values to set during the build.final -
builder
→ Input<
BuilderConfig> ? -
Builder configuration.
final
-
buildOnPreview
→ Input<
bool> ? -
Setting this to
falsewill always skip image builds during previews, and setting it totruewill always build images during previews.final -
cacheFrom
→ Input<
List< ?CacheFrom> > -
Cache export configuration.
final
-
cacheTo
→ Input<
List< ?CacheTo> > -
Cache import configuration.
final
-
context
→ Input<
BuildContext> ? -
Build context settings. Defaults to the current directory.
final
-
dockerfile
→ Input<
Dockerfile> ? -
Dockerfile settings.
final
-
exec
→ Input<
bool> ? -
Use
execmode to build this image.final -
exports
→ Input<
List< ?Export> > -
Controls where images are persisted after building.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ignoreSecretsInDiffCalculation
→ Input<
List< ?String> > -
A list of secret names to ignore when calculating diffs.
final
-
labels
→ Input<
Map< ?String, String> > -
Attach arbitrary key/value metadata to the image.
final
-
load
→ Input<
bool> ? -
When
truethe build will automatically include adockerexport.final -
network
→ Input<
NetworkMode> ? -
Set the network mode for
RUNinstructions. Defaults todefault.final -
noCache
→ Input<
bool> ? -
Do not import cache manifests when building the image.
final
-
platforms
→ Input<
List< ?Platform> > -
Set target platform(s) for the build. Defaults to the host's platform.
final
-
pull
→ Input<
bool> ? -
Always pull referenced images.
final
-
push
→ Input<
bool> -
When
truethe build will automatically include aregistryexport.final -
registries
→ Input<
List< ?Registry> > -
Registry credentials. Required if reading or exporting to private
repositories.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secrets
→ Input<
Map< ?String, String> > -
A mapping of secret names to their corresponding values.
final
-
ssh
→ Input<
List< ?SSH> > -
SSH agent socket or keys to expose to the build.
final
-
Name and optionally a tag (format:
name:tag).final -
target
→ Input<
String> ? -
Set the target build stage(s) to build.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited