Packages

c

izumi.distage.docker.Docker

ContainerConfig

final case class ContainerConfig[T](image: String, ports: Seq[DockerPort], name: Option[String] = None, env: Map[String, String] = Map.empty, cmd: Seq[String] = Seq.empty, entrypoint: Seq[String] = Seq.empty, cwd: Option[String] = None, user: Option[String] = None, mounts: Seq[Mount] = Seq.empty, networks: Set[ContainerNetwork[_]] = Set.empty, reuse: Boolean = true, healthCheckInterval: FiniteDuration = FiniteDuration(1, TimeUnit.SECONDS), healthCheckMaxAttempts: Int = 120, pullTimeout: FiniteDuration = FiniteDuration(120, TimeUnit.SECONDS), healthCheck: ContainerHealthCheck[T] = ContainerHealthCheck.portCheck[T], portProbeTimeout: FiniteDuration = FiniteDuration(200, TimeUnit.MILLISECONDS)) extends Product with Serializable

Parameters that define the behavior of this docker container, Will be interpreted by ContainerResource

image

Docker Image to use

ports

Ports to map on the docker container

name

Name of the container, if left at None Docker will generate a random name

env

Setup environment variables visible inside docker container

cmd

Entrypoint command to use

entrypoint

Docker entrypoint to use

cwd

Working directory to use inside the docker container

mounts

Host paths mounted to Volumes inside the docker container

networks

Docker networks to connect this container to

reuse

If true and ClientConfig#allowReuse is also true, keeps container alive after tests. If false, the container will be shut down. default: true

healthCheckInterval

Sleep interval between healthChecks default: 1 second

pullTimeout

Maximum amount of time to wait for docker pull to download the image default: 120 seconds

healthCheck

The function to use to test if a container has started already, by default probes to check if all ports are open and proceeds if so.

portProbeTimeout

Sleep interval between port probes in the default healthCheck default: 200 milliseconds

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContainerConfig
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ContainerConfig(image: String, ports: Seq[DockerPort], name: Option[String] = None, env: Map[String, String] = Map.empty, cmd: Seq[String] = Seq.empty, entrypoint: Seq[String] = Seq.empty, cwd: Option[String] = None, user: Option[String] = None, mounts: Seq[Mount] = Seq.empty, networks: Set[ContainerNetwork[_]] = Set.empty, reuse: Boolean = true, healthCheckInterval: FiniteDuration = FiniteDuration(1, TimeUnit.SECONDS), healthCheckMaxAttempts: Int = 120, pullTimeout: FiniteDuration = FiniteDuration(120, TimeUnit.SECONDS), healthCheck: ContainerHealthCheck[T] = ContainerHealthCheck.portCheck[T], portProbeTimeout: FiniteDuration = FiniteDuration(200, TimeUnit.MILLISECONDS))

    image

    Docker Image to use

    ports

    Ports to map on the docker container

    name

    Name of the container, if left at None Docker will generate a random name

    env

    Setup environment variables visible inside docker container

    cmd

    Entrypoint command to use

    entrypoint

    Docker entrypoint to use

    cwd

    Working directory to use inside the docker container

    mounts

    Host paths mounted to Volumes inside the docker container

    networks

    Docker networks to connect this container to

    reuse

    If true and ClientConfig#allowReuse is also true, keeps container alive after tests. If false, the container will be shut down. default: true

    healthCheckInterval

    Sleep interval between healthChecks default: 1 second

    pullTimeout

    Maximum amount of time to wait for docker pull to download the image default: 120 seconds

    healthCheck

    The function to use to test if a container has started already, by default probes to check if all ports are open and proceeds if so.

    portProbeTimeout

    Sleep interval between port probes in the default healthCheck default: 200 milliseconds

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. val cmd: Seq[String]
  7. val cwd: Option[String]
  8. val entrypoint: Seq[String]
  9. val env: Map[String, String]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. val healthCheck: ContainerHealthCheck[T]
  14. val healthCheckInterval: FiniteDuration
  15. val healthCheckMaxAttempts: Int
  16. val image: String
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. val mounts: Seq[Mount]
  19. val name: Option[String]
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. val networks: Set[ContainerNetwork[_]]
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. val portProbeTimeout: FiniteDuration
  25. val ports: Seq[DockerPort]
  26. def productElementNames: Iterator[String]
    Definition Classes
    Product
  27. val pullTimeout: FiniteDuration
  28. val reuse: Boolean
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def tcpPorts: Set[DockerPort]
  31. def udpPorts: Set[DockerPort]
  32. val user: Option[String]
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped