Class DockerSpec
java.lang.Object
org.springframework.boot.gradle.tasks.bundling.DockerSpec
Encapsulates Docker configuration options.
- Since:
- 2.4.0
- Author:
- Wei Jiang, Scott Frederick
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Encapsulates Docker registry authentication configuration options. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Customizes theDockerSpec.DockerRegistrySpec
that configures authentication to the builder registry.Returns theDockerSpec.DockerRegistrySpec
that configures authentication to the builder registry.getHost()
Returns theDockerSpec.DockerRegistrySpec
that configures authentication to the publishing registry.void
Customizes theDockerSpec.DockerRegistrySpec
that configures authentication to the publishing registry.void
setBindHostToBuilder
(boolean use) void
setCertPath
(String certPath) void
void
setTlsVerify
(boolean tlsVerify)
-
Constructor Details
-
DockerSpec
public DockerSpec()
-
-
Method Details
-
getHost
-
setHost
-
isTlsVerify
-
setTlsVerify
public void setTlsVerify(boolean tlsVerify) -
getCertPath
-
setCertPath
-
isBindHostToBuilder
-
setBindHostToBuilder
public void setBindHostToBuilder(boolean use) -
getBuilderRegistry
Returns theDockerSpec.DockerRegistrySpec
that configures authentication to the builder registry.- Returns:
- the registry spec
-
builderRegistry
Customizes theDockerSpec.DockerRegistrySpec
that configures authentication to the builder registry.- Parameters:
action
- the action to apply
-
getPublishRegistry
Returns theDockerSpec.DockerRegistrySpec
that configures authentication to the publishing registry.- Returns:
- the registry spec
-
publishRegistry
Customizes theDockerSpec.DockerRegistrySpec
that configures authentication to the publishing registry.- Parameters:
action
- the action to apply
-