Class DockerClientService
java.lang.Object
com.bmuschko.gradle.docker.internal.services.DockerClientService
- All Implemented Interfaces:
AutoCloseable
,BuildService<DockerClientService.Params>
public abstract class DockerClientService
extends Object
implements BuildService<DockerClientService.Params>, AutoCloseable
Build service for Docker client.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Parameters for build service. -
Constructor Summary
ConstructorDescriptionDockerClientService
(ObjectFactory objects) Constructor for Docker client service. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gradle.api.services.BuildService
getParameters
-
Constructor Details
-
DockerClientService
Constructor for Docker client service.- Parameters:
objects
- The object factory
-
-
Method Details
-
getDockerClient
public com.github.dockerjava.api.DockerClient getDockerClient(Provider<String> urlProvider, Provider<Directory> certPathProvider, Provider<String> apiVersionProvider) Returns the Docker client.- Parameters:
urlProvider
- Docker client urlcertPathProvider
- Docker client certificate pathapiVersionProvider
- Docker client api version- Returns:
- Docker client
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-