Package org.springframework.boot.maven
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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the application content directory for the image.The name of the builder image to use to create the image.If the cache should be cleaned before building.Returns the created date for the image.getEnv()
Environment properties that should be passed to the builder.Returns the platform (os/architecture/variant) that will be used for all pulled images.getName()
The name of the created image.Returns the network the build container will connect to.If the built image should be pushed to a registry.org.springframework.boot.buildpack.platform.build.PullPolicy
If images should be pulled from a remote repository during image build.The name of the run image to use to create the image.If the builder should be treated as trusted.boolean
If verbose logging is required.void
setApplicationDirectory
(String applicationDirectory) void
setCreatedDate
(String createdDate) void
setImagePlatform
(String imagePlatform) void
setNetwork
(String network)
-
Constructor Details
-
Image
public Image()
-
-
Method Details
-
getName
The name of the created image.- Returns:
- the image name
-
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
Environment properties that should be passed to the builder.- Returns:
- the environment properties
-
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 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
-