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 contextDockerAccessException
org.apache.maven.plugin.MojoExecutionException
public void tagImage(String imageName, ImageConfiguration imageConfig) throws DockerAccessException
DockerAccessException
protected 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
- DockerAccessException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2020. All rights reserved.