Class ImageBuild
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.honton.chas.buildx.maven.plugin.ImageGoal
-
- org.honton.chas.buildx.maven.plugin.Containerfile
-
- org.honton.chas.buildx.maven.plugin.buildx.ImageBuild
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,ConnectionCfg
- Direct Known Subclasses:
ImagePush
@Mojo(name="build", defaultPhase=PACKAGE, threadSafe=true) public class ImageBuild extends ContainerfileCreate a container image from the Containerfile directions and files from context
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,String>buildArgumentsMap of build argumentsprotected StringbuilderThe name of an existing builder to usestatic StringBUILDX_MAVENMap<String,String>contextsMap of context name to locationprotected StringimageFully qualified image name containing registry prefix, repository name, and versionprotected List<String>platformsThe os/arch of the built imageStringprovenanceInclude provenance attestation.booleansbomInclude software bill of materials attestation.-
Fields inherited from class org.honton.chas.buildx.maven.plugin.Containerfile
containerFile, context
-
-
Constructor Summary
Constructors Constructor Description ImageBuild()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>contexts()protected StringctxDir()protected voiddoExecute()-
Methods inherited from class org.honton.chas.buildx.maven.plugin.Containerfile
containerFile, defaultContainerFile
-
Methods inherited from class org.honton.chas.buildx.maven.plugin.ImageGoal
execute, executeCommand, executeCommand, shortestPath
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.honton.chas.buildx.maven.plugin.config.ConnectionCfg
getCli
-
-
-
-
Field Detail
-
BUILDX_MAVEN
public static final String BUILDX_MAVEN
- See Also:
- Constant Field Values
-
image
@Parameter(property="buildx.image", required=true) protected String imageFully qualified image name containing registry prefix, repository name, and version
-
platforms
@Parameter(property="buildx.platforms") protected List<String> platforms
The os/arch of the built image
-
builder
@Parameter(property="buildx.builder", defaultValue="buildx-maven") protected String builderThe name of an existing builder to use
-
provenance
@Parameter(property="buildx.provenance") public String provenance
Include provenance attestation. Acceptable values are "min", "max", "false"
-
sbom
@Parameter(property="buildx.sbom", defaultValue="false") public boolean sbomInclude software bill of materials attestation.
-
-