Class BatchImageBuildConfiguration
- java.lang.Object
-
- nl.lexemmens.podman.config.image.AbstractImageBuildConfiguration
-
- nl.lexemmens.podman.config.image.batch.BatchImageBuildConfiguration
-
public class BatchImageBuildConfiguration extends AbstractImageBuildConfiguration
Contains the configuration for batch image processing.
-
-
Field Summary
-
Fields inherited from class nl.lexemmens.podman.config.image.AbstractImageBuildConfiguration
containerFile, containerFileDir, createLatestTag, DEFAULT_CONTAINERFILE, format, labels, layers, mavenProjectVersion, MULTISTAGE_CONTAINERFILE_REGEX, noCache, outputDirectory, pull, pullAlways, squash, squashAll, tags, tagWithMavenProjectVersion, valid
-
-
Constructor Summary
Constructors Constructor Description BatchImageBuildConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Path>getAllContainerFiles()Takes theAbstractImageBuildConfiguration.containerFileDirand looks for Containerfiles in that directory.protected String[]getTags()Returns all configured tagsprotected booleanisTagWithMavenProjectVersion()Returns whether the images should be tagged with the Maven Project version.-
Methods inherited from class nl.lexemmens.podman.config.image.AbstractImageBuildConfiguration
determineBuildStages, getAllTags, getFormat, getLabels, getLayers, getMultistageContainerfilePattern, getOutputDirectory, getPull, getPullAlways, getSquash, getSquashAll, getTargetContainerFile, isContainerFileEmpty, isCreateLatestTag, isMultistageContainerFile, isNoCache, isValid, setContainerFile, setContainerFileDir, setCreateLatestTag, setFormat, setLabels, setLayers, setNoCache, setPull, setPullAlways, setSquash, setSquashAll, setTags, setTagWithMavenProjectVersion, validate
-
-
-
-
Method Detail
-
getAllContainerFiles
public List<Path> getAllContainerFiles() throws org.apache.maven.plugin.MojoExecutionException
Takes theAbstractImageBuildConfiguration.containerFileDirand looks for Containerfiles in that directory.- Returns:
- A collection of Containefiles found. May be an empty list, but is never
null - Throws:
org.apache.maven.plugin.MojoExecutionException- In case an IOException occurs during the search.
-
getTags
protected String[] getTags()
Returns all configured tags- Returns:
- all tags, may be
null
-
isTagWithMavenProjectVersion
protected boolean isTagWithMavenProjectVersion()
Returns whether the images should be tagged with the Maven Project version.- Returns:
- true in case the image should be tagged with the Maven Project version. False otherwise.
-
-