public class StepsRunner
extends java.lang.Object
Use by constructing the runner and calling run... each step. Make sure that steps are
run before other steps that depend on them. Wait on the last step.
| Constructor and Description |
|---|
StepsRunner(BuildConfiguration buildConfiguration,
Cache baseLayersCache,
Cache applicationLayersCache) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CachedLayerWithMetadata> |
getCachedApplicationLayers() |
java.util.List<CachedLayer> |
getCachedBaseImageLayers() |
StepsRunner |
runAuthenticatePushStep() |
StepsRunner |
runBuildAndCacheApplicationLayerSteps() |
StepsRunner |
runBuildImageStep() |
StepsRunner |
runFinalizingBuildStep() |
StepsRunner |
runFinalizingPushStep() |
StepsRunner |
runLoadDockerStep() |
StepsRunner |
runPullAndCacheBaseImageLayersStep() |
StepsRunner |
runPullBaseImageStep() |
StepsRunner |
runPushApplicationLayersStep() |
StepsRunner |
runPushBaseImageLayersStep() |
StepsRunner |
runPushContainerConfigurationStep() |
StepsRunner |
runPushImageStep() |
StepsRunner |
runRetrieveTargetRegistryCredentialsStep() |
StepsRunner |
runWriteTarFileStep(java.nio.file.Path outputPath) |
void |
waitOnLoadDockerStep() |
void |
waitOnPushImageStep() |
void |
waitOnWriteTarFileStep() |
public StepsRunner(BuildConfiguration buildConfiguration, Cache baseLayersCache, Cache applicationLayersCache)
public StepsRunner runRetrieveTargetRegistryCredentialsStep()
public StepsRunner runAuthenticatePushStep()
public StepsRunner runPullBaseImageStep()
public StepsRunner runPullAndCacheBaseImageLayersStep()
public StepsRunner runPushBaseImageLayersStep()
public StepsRunner runBuildAndCacheApplicationLayerSteps()
public StepsRunner runBuildImageStep()
public StepsRunner runPushContainerConfigurationStep()
public StepsRunner runPushApplicationLayersStep()
public StepsRunner runFinalizingPushStep()
public StepsRunner runFinalizingBuildStep()
public StepsRunner runPushImageStep()
public StepsRunner runLoadDockerStep()
public StepsRunner runWriteTarFileStep(java.nio.file.Path outputPath)
public void waitOnPushImageStep()
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException
java.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic void waitOnLoadDockerStep()
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException
java.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic void waitOnWriteTarFileStep()
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException
java.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionpublic java.util.List<CachedLayer> getCachedBaseImageLayers() throws java.util.concurrent.ExecutionException
pullAndCacheBaseImageLayersStepjava.util.concurrent.ExecutionException - if pullAndCacheBaseImageLayersStep threw an exception
during executionpublic java.util.List<CachedLayerWithMetadata> getCachedApplicationLayers() throws java.util.concurrent.ExecutionException
buildAndCacheApplicationLayerStepsjava.util.concurrent.ExecutionException - if buildAndCacheApplicationLayerSteps threw an exception
during execution