public class JibBuildRunner extends Object
| Modifier and Type | Method and Description |
|---|---|
static JibBuildRunner |
forBuildImage(JibContainerBuilder jibContainerBuilder,
Containerizer containerizer,
Consumer<LogEvent> logger,
HelpfulSuggestions helpfulSuggestions,
ImageReference targetImageReference,
Set<String> additionalTags)
Creates a runner to build an image.
|
static JibBuildRunner |
forBuildTar(JibContainerBuilder jibContainerBuilder,
Containerizer containerizer,
Consumer<LogEvent> logger,
HelpfulSuggestions helpfulSuggestions,
Path outputPath)
Creates a runner to build an image tarball.
|
static JibBuildRunner |
forBuildToDockerDaemon(JibContainerBuilder jibContainerBuilder,
Containerizer containerizer,
Consumer<LogEvent> logger,
HelpfulSuggestions helpfulSuggestions,
ImageReference targetImageReference,
Set<String> additionalTags)
Creates a runner to build to the Docker daemon.
|
JibContainer |
runBuild()
Runs the Jib build.
|
JibBuildRunner |
writeImageDigest(Path imageDigestOutputPath)
Set the location where the image digest will be saved.
|
JibBuildRunner |
writeImageId(Path imageIdOutputPath)
Set the location where the image id will be saved.
|
public static JibBuildRunner forBuildImage(JibContainerBuilder jibContainerBuilder, Containerizer containerizer, Consumer<LogEvent> logger, HelpfulSuggestions helpfulSuggestions, ImageReference targetImageReference, Set<String> additionalTags)
jibContainerBuilder - the JibContainerBuildercontainerizer - the Containerizerlogger - consumer for handling log eventshelpfulSuggestions - suggestions to use in help messages for exceptionstargetImageReference - the target image referenceadditionalTags - additional tags to push toJibBuildRunner for building to a registrypublic static JibBuildRunner forBuildToDockerDaemon(JibContainerBuilder jibContainerBuilder, Containerizer containerizer, Consumer<LogEvent> logger, HelpfulSuggestions helpfulSuggestions, ImageReference targetImageReference, Set<String> additionalTags)
jibContainerBuilder - the JibContainerBuildercontainerizer - the Containerizerlogger - consumer for handling log eventshelpfulSuggestions - suggestions to use in help messages for exceptionstargetImageReference - the target image referenceadditionalTags - additional tags to push toJibBuildRunner for building to a Docker daemonpublic static JibBuildRunner forBuildTar(JibContainerBuilder jibContainerBuilder, Containerizer containerizer, Consumer<LogEvent> logger, HelpfulSuggestions helpfulSuggestions, Path outputPath)
jibContainerBuilder - the JibContainerBuildercontainerizer - the Containerizerlogger - consumer for handling log eventshelpfulSuggestions - suggestions to use in help messages for exceptionsoutputPath - the path to output the tarball toJibBuildRunner for building a tarballpublic JibContainer runBuild() throws BuildStepsExecutionException, IOException, CacheDirectoryCreationException
JibContainerBuildStepsExecutionException - if another exception is thrown during the buildIOException - if an I/O exception occursCacheDirectoryCreationException - if the cache directory could not be createdpublic JibBuildRunner writeImageDigest(@Nullable Path imageDigestOutputPath)
null then digest is not
saved.imageDigestOutputPath - the location to write the image digest or null to skippublic JibBuildRunner writeImageId(@Nullable Path imageIdOutputPath)
null then digest is not saved.imageIdOutputPath - the location to write the image id or null to skipCopyright © 2019. All rights reserved.