java.lang.Object
org.springframework.boot.gradle.tasks.bundling.DockerSpec

public class DockerSpec extends Object
Encapsulates Docker configuration options.
Since:
2.4.0
Author:
Wei Jiang, Scott Frederick
  • Constructor Details

    • DockerSpec

      public DockerSpec()
  • Method Details

    • getHost

      @Input @Optional public String getHost()
    • setHost

      public void setHost(String host)
    • isTlsVerify

      @Input @Optional public Boolean isTlsVerify()
    • setTlsVerify

      public void setTlsVerify(boolean tlsVerify)
    • getCertPath

      @Input @Optional public String getCertPath()
    • setCertPath

      public void setCertPath(String certPath)
    • isBindHostToBuilder

      @Input @Optional public Boolean isBindHostToBuilder()
    • setBindHostToBuilder

      public void setBindHostToBuilder(boolean use)
    • getBuilderRegistry

      public DockerSpec.DockerRegistrySpec getBuilderRegistry()
      Returns the DockerSpec.DockerRegistrySpec that configures authentication to the builder registry.
      Returns:
      the registry spec
    • builderRegistry

      public void builderRegistry(org.gradle.api.Action<DockerSpec.DockerRegistrySpec> action)
      Customizes the DockerSpec.DockerRegistrySpec that configures authentication to the builder registry.
      Parameters:
      action - the action to apply
    • getPublishRegistry

      public DockerSpec.DockerRegistrySpec getPublishRegistry()
      Returns the DockerSpec.DockerRegistrySpec that configures authentication to the publishing registry.
      Returns:
      the registry spec
    • publishRegistry

      public void publishRegistry(org.gradle.api.Action<DockerSpec.DockerRegistrySpec> action)
      Customizes the DockerSpec.DockerRegistrySpec that configures authentication to the publishing registry.
      Parameters:
      action - the action to apply