类 DockerSpec

java.lang.Object
cn.taketoday.gradle.tasks.bundling.DockerSpec

public abstract class DockerSpec extends Object
Encapsulates Docker configuration options.
从以下版本开始:
4.0
作者:
Wei Jiang, Scott Frederick, Harry Yang
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getContext

      @Input @Optional public abstract org.gradle.api.provider.Property<String> getContext()
    • getHost

      @Input @Optional public abstract org.gradle.api.provider.Property<String> getHost()
    • getTlsVerify

      @Input @Optional public abstract org.gradle.api.provider.Property<Boolean> getTlsVerify()
    • getCertPath

      @Input @Optional public abstract org.gradle.api.provider.Property<String> getCertPath()
    • getBindHostToBuilder

      @Input @Optional public abstract org.gradle.api.provider.Property<Boolean> getBindHostToBuilder()
    • getBuilderRegistry

      public DockerSpec.DockerRegistrySpec getBuilderRegistry()
      Returns the DockerSpec.DockerRegistrySpec that configures authentication to the builder registry.
      返回:
      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.
      参数:
      action - the action to apply
    • getPublishRegistry

      public DockerSpec.DockerRegistrySpec getPublishRegistry()
      Returns the DockerSpec.DockerRegistrySpec that configures authentication to the publishing registry.
      返回:
      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.
      参数:
      action - the action to apply
    • asDockerConfiguration

      cn.taketoday.buildpack.platform.docker.configuration.DockerConfiguration asDockerConfiguration()
      Returns this configuration as a DockerConfiguration instance. This method should only be called when the configuration is complete and will no longer be changed.
      返回:
      the Docker configuration
    • customizeHost

      private cn.taketoday.buildpack.platform.docker.configuration.DockerConfiguration customizeHost(cn.taketoday.buildpack.platform.docker.configuration.DockerConfiguration dockerConfiguration)
    • customizeBuilderAuthentication

      private cn.taketoday.buildpack.platform.docker.configuration.DockerConfiguration customizeBuilderAuthentication(cn.taketoday.buildpack.platform.docker.configuration.DockerConfiguration dockerConfiguration)
    • customizePublishAuthentication

      private cn.taketoday.buildpack.platform.docker.configuration.DockerConfiguration customizePublishAuthentication(cn.taketoday.buildpack.platform.docker.configuration.DockerConfiguration dockerConfiguration)