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
Constructors -
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.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.PullPolicyIf images should be pulled from a remote repository during image build.The name of the run image to use to create the image.booleanIf verbose logging is required.voidsetApplicationDirectory(String applicationDirectory) voidsetCreatedDate(String createdDate) voidsetNetwork(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
-
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:
trueif the cache should be cleaned
-
isVerboseLogging
public boolean isVerboseLogging()If verbose logging is required.- Returns:
truefor 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:
trueif 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
-