Package org.ivoa.dm.tool
Class BuildProcess
java.lang.Object
org.ivoa.dm.tool.BuildProcess
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="tool:BuildProcess",
role=objectType)
public class BuildProcess
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
How the tool image is built.
objectType: BuildProcess
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for BuildProcess, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new BuildProcessBuildProcess(String buildCommand, String buildContext, String dockerfilePath) full parameter constructor.BuildProcess(BuildProcess other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic BuildProcesscreate a BuildProcess in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns buildCommand Attribute.Returns buildContext Attribute.Returns dockerfilePath Attribute.getId()voidsetBuildCommand(String pBuildCommand) Set buildCommand Attribute.voidsetBuildContext(String pBuildContext) Set buildContext Attribute.voidsetDockerfilePath(String pDockerfilePath) Set dockerfilePath Attribute.voidupdateUsing(BuildProcess other) Update this object with the content of the given object.withBuildCommand(String pBuildCommand) fluent setter for buildCommand Attribute.withBuildContext(String pBuildContext) fluent setter for buildContext Attribute.withDockerfilePath(String pDockerfilePath) fluent setter for dockerfilePath Attribute.
-
Field Details
-
_id
inserted database key -
buildCommand
@VoDml(id="tool:BuildProcess.buildCommand", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String buildCommandThe command used to build the image, e.g. 'docker build .'. : Attribute buildCommand type ivoa:string : multiplicity 1 -
buildContext
@VoDml(id="tool:BuildProcess.buildContext", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String buildContextThe context directory for the build, e.g. './'. : Attribute buildContext type ivoa:string : multiplicity 0..1 -
dockerfilePath
@VoDml(id="tool:BuildProcess.dockerfilePath", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String dockerfilePathThe path to the Dockerfile, e.g. './Dockerfile'. : Attribute dockerfilePath type ivoa:string : multiplicity 0..1
-
-
Constructor Details
-
BuildProcess
public BuildProcess()Creates a new BuildProcess -
BuildProcess
full parameter constructor.- Parameters:
buildCommand- The command used to build the image, e.g. 'docker build .'.buildContext- The context directory for the build, e.g. './'.dockerfilePath- The path to the Dockerfile, e.g. './Dockerfile'.
-
BuildProcess
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
getBuildCommand
Returns buildCommand Attribute.- Returns:
- buildCommand Attribute
-
setBuildCommand
Set buildCommand Attribute.- Parameters:
pBuildCommand- value to set
-
withBuildCommand
fluent setter for buildCommand Attribute.- Parameters:
pBuildCommand- value to set- Returns:
- BuildProcess
-
getBuildContext
Returns buildContext Attribute.- Returns:
- buildContext Attribute
-
setBuildContext
Set buildContext Attribute.- Parameters:
pBuildContext- value to set
-
withBuildContext
fluent setter for buildContext Attribute.- Parameters:
pBuildContext- value to set- Returns:
- BuildProcess
-
getDockerfilePath
Returns dockerfilePath Attribute.- Returns:
- dockerfilePath Attribute
-
setDockerfilePath
Set dockerfilePath Attribute.- Parameters:
pDockerfilePath- value to set
-
withDockerfilePath
fluent setter for dockerfilePath Attribute.- Parameters:
pDockerfilePath- value to set- Returns:
- BuildProcess
-
createBuildProcess
create a BuildProcess in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-