Class DockerContainer.DockerContainerBuilder

java.lang.Object
org.ivoa.dm.executionbroker.DockerContainer.DockerContainerBuilder
Enclosing class:
DockerContainer

public static class DockerContainer.DockerContainerBuilder extends Object
A builder class for DockerContainer, mainly for use in the functional builder pattern.
  • Field Details

    • image

      public DockerImageSpec image
      Details of the container image.
    • privileged

      public Boolean privileged
      Set the privileged flag on execution. The default is `false`. See https://docs.docker.com/reference/cli/docker/container/run/#privileged.
    • entrypoint

      public String entrypoint
      Overwrite the default ENTRYPOINT of the image.
    • environment

      public NameValueMap environment
      A name => value map of environment variables to pass to the container.
    • network

      public DockerNetworkSpec network
      Details of the network access available to the container.
    • lifecycle

      public LifecycleComponent lifecycle
      .
    • kind

      public String kind
      The component type identifier.
    • meta

      public ComponentMetadata meta
      The component metadata.
  • Constructor Details

    • DockerContainerBuilder

      public DockerContainerBuilder()
  • Method Details

    • create

      public DockerContainer create()
      create a DockerContainer from this builder.
      Returns:
      an object initialized from the builder.