Class Image
java.lang.Object
org.springframework.boot.maven.Image
Image configuration options.
- Since:
- 2.3.0
- Author:
- Phillip Webb, Scott Frederick, Jeroen Meijer, Rafael Ceccone, Julian Liebig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returns the application content directory for the image.@Nullable String
The name of the builder image to use to create the image.@Nullable Boolean
If the cache should be cleaned before building.@Nullable String
Returns the created date for the image.getEnv()
Environment properties that should be passed to the builder.@Nullable String
Returns the platform (os/architecture/variant) that will be used for all pulled images.@Nullable String
getName()
The name of the created image.@Nullable String
Returns the network the build container will connect to.@Nullable Boolean
If the built image should be pushed to a registry.@Nullable org.springframework.boot.buildpack.platform.build.PullPolicy
If images should be pulled from a remote repository during image build.@Nullable String
The name of the run image to use to create the image.@Nullable Boolean
If the builder should be treated as trusted.boolean
If verbose logging is required.void
setApplicationDirectory
(@Nullable String applicationDirectory) void
setCreatedDate
(@Nullable String createdDate) void
setImagePlatform
(@Nullable String imagePlatform) void
setNetwork
(@Nullable String network)
-
Constructor Details
-
Image
public Image()
-
-
Method Details
-
getName
-
getBuilder
The name of the builder image to use to create the image.- Returns:
- the builder image name
-
getTrustBuilder
If the builder should be treated as trusted.- Returns:
true
if the builder should be treated as trusted
-
getRunImage
The name of the run image to use to create the image.- Returns:
- the builder image name
-
getEnv
-
getCleanCache
If the cache should be cleaned before building.- Returns:
true
if the cache should be cleaned
-
isVerboseLogging
public boolean isVerboseLogging()If verbose logging is required.- Returns:
true
for verbose logging
-
getPullPolicy
public @Nullable org.springframework.boot.buildpack.platform.build.PullPolicy getPullPolicy()If images should be pulled from a remote repository during image build.- Returns:
- the pull policy
-
getPublish
If the built image should be pushed to a registry.- Returns:
true
if the image should be published
-
getNetwork
Returns the network the build container will connect to.- Returns:
- the network
-
setNetwork
-
getCreatedDate
Returns the created date for the image.- Returns:
- the created date
-
setCreatedDate
-
getApplicationDirectory
Returns the application content directory for the image.- Returns:
- the application directory
-
setApplicationDirectory
-
getImagePlatform
Returns the platform (os/architecture/variant) that will be used for all pulled images. Whennull
, the system will choose a platform based on the host operating system and architecture.- Returns:
- the image platform
-
setImagePlatform
-