Class Image

java.lang.Object
org.springframework.boot.maven.Image

public class Image extends Object
Image configuration options.
Since:
2.3.0
Author:
Phillip Webb, Scott Frederick, Jeroen Meijer, Rafael Ceccone, Julian Liebig
  • Constructor Details

    • Image

      public Image()
  • Method Details

    • getName

      public String getName()
      The name of the created image.
      Returns:
      the image name
    • getBuilder

      public String getBuilder()
      The name of the builder image to use to create the image.
      Returns:
      the builder image name
    • getRunImage

      public String getRunImage()
      The name of the run image to use to create the image.
      Returns:
      the builder image name
    • getEnv

      public Map<String,String> getEnv()
      Environment properties that should be passed to the builder.
      Returns:
      the environment properties
    • getCleanCache

      public Boolean 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

      public Boolean getPublish()
      If the built image should be pushed to a registry.
      Returns:
      true if the image should be published
    • getNetwork

      public String getNetwork()
      Returns the network the build container will connect to.
      Returns:
      the network
    • setNetwork

      public void setNetwork(String network)