public class BuildStepsRunner extends Object
BuildSteps and builds helpful error messages.| Modifier and Type | Method and Description |
|---|---|
void |
build(HelpfulSuggestions helpfulSuggestions)
Runs the
BuildSteps. |
static BuildStepsRunner |
forBuildImage(BuildConfiguration buildConfiguration,
SourceFilesConfiguration sourceFilesConfiguration,
Path cacheDirectory,
boolean useOnlyProjectCache)
Creates a runner to build an image.
|
static BuildStepsRunner |
forBuildToDockerDaemon(BuildConfiguration buildConfiguration,
SourceFilesConfiguration sourceFilesConfiguration,
Path cacheDirectory,
boolean useOnlyProjectCache)
Creates a runner to build to the Docker daemon.
|
public static BuildStepsRunner forBuildImage(BuildConfiguration buildConfiguration, SourceFilesConfiguration sourceFilesConfiguration, Path cacheDirectory, boolean useOnlyProjectCache) throws CacheDirectoryCreationException
useOnlyProjectCache - if true, sets the base layers cache directory to be the same
as the application layers cache directoryCacheDirectoryCreationException - if the cacheDirectory could not be createdpublic static BuildStepsRunner forBuildToDockerDaemon(BuildConfiguration buildConfiguration, SourceFilesConfiguration sourceFilesConfiguration, Path cacheDirectory, boolean useOnlyProjectCache) throws CacheDirectoryCreationException
useOnlyProjectCache - if true, sets the base layers cache directory to be the same
as the application layers cache directoryCacheDirectoryCreationException - if the cacheDirectory could not be createdpublic void build(HelpfulSuggestions helpfulSuggestions) throws BuildStepsExecutionException
BuildSteps.helpfulSuggestions - suggestions to use in help messages for exceptionsBuildStepsExecutionExceptionCopyright © 2018. All rights reserved.