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 TypeMethodDescriptionThe name of the builder image to use to create the image.If the cache should be cleaned before building.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.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.boolean
If verbose logging is required.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
-
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
-