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
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • buildCommand

      @VoDml(id="tool:BuildProcess.buildCommand", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String buildCommand
      The 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 buildContext
      The 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 dockerfilePath
      The 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

      public BuildProcess(String buildCommand, String buildContext, String dockerfilePath)
      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

      public BuildProcess(BuildProcess other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(BuildProcess other)
      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

      public String getBuildCommand()
      Returns buildCommand Attribute.
      Returns:
      buildCommand Attribute
    • setBuildCommand

      public void setBuildCommand(String pBuildCommand)
      Set buildCommand Attribute.
      Parameters:
      pBuildCommand - value to set
    • withBuildCommand

      public BuildProcess withBuildCommand(String pBuildCommand)
      fluent setter for buildCommand Attribute.
      Parameters:
      pBuildCommand - value to set
      Returns:
      BuildProcess
    • getBuildContext

      public String getBuildContext()
      Returns buildContext Attribute.
      Returns:
      buildContext Attribute
    • setBuildContext

      public void setBuildContext(String pBuildContext)
      Set buildContext Attribute.
      Parameters:
      pBuildContext - value to set
    • withBuildContext

      public BuildProcess withBuildContext(String pBuildContext)
      fluent setter for buildContext Attribute.
      Parameters:
      pBuildContext - value to set
      Returns:
      BuildProcess
    • getDockerfilePath

      public String getDockerfilePath()
      Returns dockerfilePath Attribute.
      Returns:
      dockerfilePath Attribute
    • setDockerfilePath

      public void setDockerfilePath(String pDockerfilePath)
      Set dockerfilePath Attribute.
      Parameters:
      pDockerfilePath - value to set
    • withDockerfilePath

      public BuildProcess withDockerfilePath(String pDockerfilePath)
      fluent setter for dockerfilePath Attribute.
      Parameters:
      pDockerfilePath - value to set
      Returns:
      BuildProcess
    • createBuildProcess

      public static BuildProcess createBuildProcess(Consumer<BuildProcess.BuildProcessBuilder> f)
      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:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>