public class BuildService extends Object
Modifier and Type | Method and Description |
---|---|
void |
buildImage(org.eclipse.jkube.kit.config.image.ImageConfiguration imageConfig,
ImagePullManager imagePullManager,
org.eclipse.jkube.kit.config.image.build.JKubeConfiguration configuration)
Pull the base image if needed and run the build.
|
protected void |
buildImage(org.eclipse.jkube.kit.config.image.ImageConfiguration imageConfig,
org.eclipse.jkube.kit.config.image.build.JKubeConfiguration params,
boolean noCache,
Map<String,String> buildArgs)
Build an image
|
void |
tagImage(String imageName,
org.eclipse.jkube.kit.config.image.ImageConfiguration imageConfig) |
public void buildImage(org.eclipse.jkube.kit.config.image.ImageConfiguration imageConfig, ImagePullManager imagePullManager, org.eclipse.jkube.kit.config.image.build.JKubeConfiguration configuration) throws IOException
imageConfig
- the image configurationimagePullManager
- the image pull managerconfiguration
- the project configurationIOException
- in case of any problemspublic void tagImage(String imageName, org.eclipse.jkube.kit.config.image.ImageConfiguration imageConfig) throws DockerAccessException
DockerAccessException
protected void buildImage(org.eclipse.jkube.kit.config.image.ImageConfiguration imageConfig, org.eclipse.jkube.kit.config.image.build.JKubeConfiguration params, boolean noCache, Map<String,String> buildArgs) throws IOException
imageConfig
- the image configurationparams
- mojo params for the projectnoCache
- if not null, dictate the caching behaviour. Otherwise its taken from the build configurationbuildArgs
- maven build contextDockerAccessException
- docker access exceptionIOException
- in case of any I/O exceptionCopyright © 2020. All rights reserved.