Class BatchImageConfiguration
- java.lang.Object
-
- nl.lexemmens.podman.config.image.AbstractImageConfiguration<BatchImageBuildConfiguration>
-
- nl.lexemmens.podman.config.image.batch.BatchImageConfiguration
-
public class BatchImageConfiguration extends AbstractImageConfiguration<BatchImageBuildConfiguration>
Holds the configuration for the container images that are being built. Values of this class will be set via the Maven pom, except for the image hash.
-
-
Field Summary
Fields Modifier and Type Field Description protected BatchImageBuildConfigurationbuildThe build image configuration.-
Fields inherited from class nl.lexemmens.podman.config.image.AbstractImageConfiguration
customImageNameForMultiStageContainerfile, name, stages
-
-
Constructor Summary
Constructors Constructor Description BatchImageConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchImageBuildConfigurationgetBuild()Returns the build configurationvoidinitAndValidate(org.apache.maven.plugin.logging.Log log, org.apache.maven.project.MavenProject project)Initializes this configuration and fills any null values with default values.List<SingleImageConfiguration>resolve(org.apache.maven.plugin.logging.Log log)Concerts thisBatchImageConfigurationinto a collection ofSingleImageConfigurationinstances.-
Methods inherited from class nl.lexemmens.podman.config.image.AbstractImageConfiguration
getFinalImageHash, getImageHashPerStage, getImageName, getImageNames, getImageNamesByStage, getStages, initAndValidate, isValid, setCustomImageNameForMultiStageContainerfile, setFinalImageHash, setImageName, setStages, useCustomImageNameForMultiStageContainerfile
-
-
-
-
Field Detail
-
build
@Parameter protected BatchImageBuildConfiguration build
The build image configuration.
-
-
Method Detail
-
initAndValidate
public void initAndValidate(org.apache.maven.plugin.logging.Log log, org.apache.maven.project.MavenProject project) throws org.apache.maven.plugin.MojoExecutionExceptionInitializes this configuration and fills any null values with default values.- Parameters:
log- The log for logging any errors that occur during validationproject- The Maven Project to validate the build section- Throws:
org.apache.maven.plugin.MojoExecutionException- In case validation fails.
-
resolve
public List<SingleImageConfiguration> resolve(org.apache.maven.plugin.logging.Log log) throws org.apache.maven.plugin.MojoExecutionException
Concerts thisBatchImageConfigurationinto a collection ofSingleImageConfigurationinstances. One instance will be created per Containerfile found.- Parameters:
log- For logging- Returns:
- A collection of
SingleImageConfigurationinstances based on the currentBatchImageConfiguration - Throws:
org.apache.maven.plugin.MojoExecutionException- In case of an IOException during querying all Containerfiles
-
getBuild
public BatchImageBuildConfiguration getBuild()
Description copied from class:AbstractImageConfigurationReturns the build configuration
- Specified by:
getBuildin classAbstractImageConfiguration<BatchImageBuildConfiguration>- Returns:
- the configuration used for building the image
-
-