Package io.micronaut.maven.jib
Class JibConfigurationService
java.lang.Object
io.micronaut.maven.jib.JibConfigurationService
Exposes the Jib plugin configuration so that it can be read by other mojos.
- Since:
- 1.1
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()Optional<com.google.cloud.tools.jib.api.Credential>getPorts()getTags()Optional<com.google.cloud.tools.jib.api.Credential>Optional<com.google.cloud.tools.jib.api.Credential>resolveCredentialForImage(String image, org.slf4j.Logger logger) Resolves effective credentials for a registry hosting the provided image reference.
-
Constructor Details
-
JibConfigurationService
-
-
Method Details
-
getToImage
- Returns:
- the
to.imageconfiguration.
-
getFromImage
- Returns:
- the
from.imageconfiguration.
-
getTags
- Returns:
- the
to.tagsconfiguration.
-
getToCredentials
- Returns:
- the
to.auth.usernameandto.auth.passwordconfiguration.
-
getFromCredentials
- Returns:
- the
from.auth.usernameandfrom.auth.passwordconfiguration.
-
resolveCredentialForImage
public Optional<com.google.cloud.tools.jib.api.Credential> resolveCredentialForImage(String image, org.slf4j.Logger logger) Resolves effective credentials for a registry hosting the provided image reference. Precedence: explicit credentials -> well-known credential helpers -> Google ADC -> docker config.- Parameters:
image- the image reference (e.g., gcr.io/project/image:tag)logger- the logger to use for logging events- Returns:
- a Credential if one could be resolved
-
getWorkingDirectory
- Returns:
- the
container.workingDirectoryconfiguration.
-
getArgs
- Returns:
- the
container.argsconfiguration.
-
getPorts
- Returns:
- the
container.portsconfiguration.
-