public class BuildStepsRunner extends Object
BuildSteps and builds helpful error messages.| Modifier and Type | Method and Description |
|---|---|
JibContainer |
build(JibContainerBuilder jibContainerBuilder,
Containerizer containerizer,
EventDispatcher eventDispatcher,
List<LayerConfiguration> layerConfigurations,
HelpfulSuggestions helpfulSuggestions)
Runs the
BuildSteps. |
static BuildStepsRunner |
forBuildImage(ImageReference targetImageReference,
Set<String> additionalTags)
Creates a runner to build an image.
|
static BuildStepsRunner |
forBuildTar(Path outputPath)
Creates a runner to build an image tarball.
|
static BuildStepsRunner |
forBuildToDockerDaemon(ImageReference targetImageReference,
Set<String> additionalTags)
Creates a runner to build to the Docker daemon.
|
BuildStepsRunner |
writeImageDigest(Path imageDigestOutputPath)
Set the location where the image digest will be saved.
|
BuildStepsRunner |
writeImageId(Path imageIdOutputPath)
Set the location where the image id will be saved.
|
public static BuildStepsRunner forBuildImage(ImageReference targetImageReference, Set<String> additionalTags)
targetImageReference - the target image referenceadditionalTags - additional tags to push toBuildStepsRunner for building to a registrypublic static BuildStepsRunner forBuildToDockerDaemon(ImageReference targetImageReference, Set<String> additionalTags)
targetImageReference - the target image referenceadditionalTags - additional tags to push toBuildStepsRunner for building to a Docker daemonpublic static BuildStepsRunner forBuildTar(Path outputPath)
outputPath - the path to output the tarball toBuildStepsRunner for building a tarballpublic JibContainer build(JibContainerBuilder jibContainerBuilder, Containerizer containerizer, EventDispatcher eventDispatcher, List<LayerConfiguration> layerConfigurations, HelpfulSuggestions helpfulSuggestions) throws BuildStepsExecutionException, IOException, CacheDirectoryCreationException
BuildSteps.jibContainerBuilder - the JibContainerBuildercontainerizer - the ContainerizereventDispatcher - the EventDispatcherlayerConfigurations - the list of LayerConfigurationshelpfulSuggestions - suggestions to use in help messages for exceptionsJibContainerBuildStepsExecutionException - if another exception is thrown during the buildIOException - if an I/O exception occursCacheDirectoryCreationException - if the cache directory could not be createdpublic BuildStepsRunner writeImageDigest(@Nullable Path imageDigestOutputPath)
null then digest is not
saved.imageDigestOutputPath - the location to write the image digest or null to skippublic BuildStepsRunner writeImageId(@Nullable Path imageIdOutputPath)
null then digest is not saved.imageIdOutputPath - the location to write the image id or null to skipCopyright © 2018. All rights reserved.