Package de.gesellix.gradle.docker
Class DockerPluginExtension
java.lang.Object
de.gesellix.gradle.docker.DockerPluginExtension
Provides project extension class for configuring default values for all Docker tasks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.gesellix.docker.authentication.AuthConfigReturns the certificate path as an absolute path to the certificate.getProxy()voidsetAuthConfig(de.gesellix.docker.authentication.AuthConfig authConfig) voidsetCertPath(String path) Allows for the setting of the path where certificates can be found.voidsetDockerHost(String dockerHost) void
-
Constructor Details
-
DockerPluginExtension
public DockerPluginExtension(org.gradle.api.Project project)
-
-
Method Details
-
setCertPath
Allows for the setting of the path where certificates can be found.- Parameters:
path- Any path object that can be resolved viaproject.file ( )
-
getCertPath
Returns the certificate path as an absolute path to the certificate. IfcertPathwas not configured it will attempt to check for system propertydocker.cert.pathfirst and then for theDOCKER_CERT_PATHenvironment variable.- Returns:
- Absolute path as a string or null.
-
getDockerHost
-
setDockerHost
-
getProxy
-
setProxy
-
getAuthConfig
public de.gesellix.docker.authentication.AuthConfig getAuthConfig() -
setAuthConfig
public void setAuthConfig(de.gesellix.docker.authentication.AuthConfig authConfig)
-