Class DockerPluginExtension

java.lang.Object
de.gesellix.gradle.docker.DockerPluginExtension

public class DockerPluginExtension extends Object
Provides project extension class for configuring default values for all Docker tasks.
  • Constructor Details

    • DockerPluginExtension

      public DockerPluginExtension(org.gradle.api.Project project)
  • Method Details

    • setCertPath

      public void setCertPath(String path)
      Allows for the setting of the path where certificates can be found.
      Parameters:
      path - Any path object that can be resolved via project.file ( )
    • getCertPath

      public String getCertPath()
      Returns the certificate path as an absolute path to the certificate. If certPath was not configured it will attempt to check for system property docker.cert.path first and then for the DOCKER_CERT_PATH environment variable.
      Returns:
      Absolute path as a string or null.
    • getDockerHost

      public String getDockerHost()
    • setDockerHost

      public void setDockerHost(String dockerHost)
    • getProxy

      public Proxy getProxy()
    • setProxy

      public void setProxy(Proxy proxy)
    • getAuthConfig

      public de.gesellix.docker.authentication.AuthConfig getAuthConfig()
    • setAuthConfig

      public void setAuthConfig(de.gesellix.docker.authentication.AuthConfig authConfig)