public static class BuildConfiguration.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
BuildConfiguration |
build()
Builds a new
BuildConfiguration using the parameters passed into the builder. |
BuildConfiguration.Builder |
setAllowInsecureRegistries(boolean allowInsecureRegistries)
Sets whether or not to allow communication over HTTP (as opposed to HTTPS).
|
BuildConfiguration.Builder |
setApplicationLayersCacheConfiguration(CacheConfiguration applicationLayersCacheConfiguration)
Sets the location of the cache for storing application layers.
|
BuildConfiguration.Builder |
setBaseImageConfiguration(ImageConfiguration imageConfiguration)
Sets the base image configuration.
|
BuildConfiguration.Builder |
setBaseImageLayersCacheConfiguration(CacheConfiguration baseImageLayersCacheConfiguration)
Sets the location of the cache for storing base image layers.
|
BuildConfiguration.Builder |
setContainerConfiguration(ContainerConfiguration containerConfiguration)
Sets configuration parameters for the container.
|
BuildConfiguration.Builder |
setLayerConfigurations(java.util.List<LayerConfiguration> layerConfigurations)
Sets the layers to build.
|
BuildConfiguration.Builder |
setTargetFormat(java.lang.Class<? extends BuildableManifestTemplate> targetFormat)
Sets the target format of the container image.
|
BuildConfiguration.Builder |
setTargetImageConfiguration(ImageConfiguration imageConfiguration)
Sets the target image configuration.
|
public BuildConfiguration.Builder setBaseImageConfiguration(ImageConfiguration imageConfiguration)
imageConfiguration - the ImageConfiguration describing the base imagepublic BuildConfiguration.Builder setTargetImageConfiguration(ImageConfiguration imageConfiguration)
imageConfiguration - the ImageConfiguration describing the target imagepublic BuildConfiguration.Builder setContainerConfiguration(ContainerConfiguration containerConfiguration)
containerConfiguration - the ContainerConfigurationpublic BuildConfiguration.Builder setApplicationLayersCacheConfiguration(@Nullable CacheConfiguration applicationLayersCacheConfiguration)
applicationLayersCacheConfiguration - the application layers CacheConfigurationpublic BuildConfiguration.Builder setBaseImageLayersCacheConfiguration(@Nullable CacheConfiguration baseImageLayersCacheConfiguration)
baseImageLayersCacheConfiguration - the base image layers CacheConfigurationpublic BuildConfiguration.Builder setTargetFormat(java.lang.Class<? extends BuildableManifestTemplate> targetFormat)
targetFormat - the target formatpublic BuildConfiguration.Builder setAllowInsecureRegistries(boolean allowInsecureRegistries)
allowInsecureRegistries - if true, insecure connections will be allowedpublic BuildConfiguration.Builder setLayerConfigurations(java.util.List<LayerConfiguration> layerConfigurations)
layerConfigurations - the configurations for the layerspublic BuildConfiguration build()
BuildConfiguration using the parameters passed into the builder.