public class BuildService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BuildService.BuildContext |
| Modifier and Type | Method and Description |
|---|---|
void |
buildImage(ImageConfiguration imageConfig,
ImagePullManager imagePullManager,
BuildService.BuildContext buildContext)
Pull the base image if needed and run the build.
|
protected void |
buildImage(ImageConfiguration imageConfig,
MojoParameters params,
boolean noCache,
Map<String,String> buildArgs)
Build an image
|
void |
tagImage(String imageName,
ImageConfiguration imageConfig) |
public void buildImage(ImageConfiguration imageConfig, ImagePullManager imagePullManager, BuildService.BuildContext buildContext) throws DockerAccessException, org.apache.maven.plugin.MojoExecutionException
imageConfig - the image configurationbuildContext - the build contextDockerAccessExceptionorg.apache.maven.plugin.MojoExecutionExceptionpublic void tagImage(String imageName, ImageConfiguration imageConfig) throws DockerAccessException
DockerAccessExceptionprotected void buildImage(ImageConfiguration imageConfig, MojoParameters params, boolean noCache, Map<String,String> buildArgs) throws DockerAccessException, org.apache.maven.plugin.MojoExecutionException
imageConfig - the image configurationparams - mojo params for the projectnoCache - if not null, dictate the caching behaviour. Otherwise its taken from the build configurationbuildArgs - DockerAccessExceptionorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2019. All rights reserved.