Packages

c

izumi.distage.docker.DockerContainer

DockerProviderExtensions

implicit final class DockerProviderExtensions[F[_], T] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DockerProviderExtensions
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DockerProviderExtensions(self: Functoid[ContainerResource[F, T]])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def connectToNetwork[T2](implicit tag1: distage.Tag[ContainerNetwork[T2]], tag2: distage.Tag[ContainerResource[F, T]], tag3: distage.Tag[ContainerConfig[T]]): Functoid[ContainerResource[F, T]]
  6. def connectToNetwork(networkDecl: ContainerNetworkDef)(implicit tag1: distage.Tag[ContainerNetwork[Tag]], tag2: distage.Tag[ContainerResource[F, T]], tag3: distage.Tag[ContainerConfig[T]]): Functoid[ContainerResource[F, T]]
  7. def dependOnContainer[T2](implicit tag: distage.Tag[DockerContainer[T2]], selfTag: distage.Tag[DockerContainer[T]], mutateModule: model.definition.dsl.ModuleDefDSL.MutationContext): Functoid[ContainerResource[F, T]]
  8. def dependOnContainer(containerDecl: ContainerDef)(implicit tag: distage.Tag[DockerContainer[Tag]], selfTag: distage.Tag[DockerContainer[T]], mutateModule: model.definition.dsl.ModuleDefDSL.MutationContext): Functoid[ContainerResource[F, T]]
  9. def dependOnContainerPorts[T2](ports: (Int, String)*)(implicit tag1: distage.Tag[DockerContainer[T2]], tag2: distage.Tag[ContainerResource[F, T]], tag3: distage.Tag[ContainerConfig[T]], selfTag: distage.Tag[DockerContainer[T]], mutateModule: model.definition.dsl.ModuleDefDSL.MutationContext): Functoid[ContainerResource[F, T]]
  10. def dependOnContainerPorts(containerDecl: ContainerDef)(ports: (Int, String)*)(implicit tag1: distage.Tag[DockerContainer[Tag]], tag2: distage.Tag[ContainerResource[F, T]], tag3: distage.Tag[ContainerConfig[T]], selfTag: distage.Tag[DockerContainer[T]], mutateModule: model.definition.dsl.ModuleDefDSL.MutationContext): Functoid[ContainerResource[F, T]]

    Export as environment variables inside the container the randomized values of ports of the argument running docker container

    Export as environment variables inside the container the randomized values of ports of the argument running docker container

    Example:
    1. class KafkaDockerModule[F[_]: TagK] extends ModuleDef {
        make[KafkaDocker.Container].fromResource {
          KafkaDocker
            .make[F]
            .connectToNetwork(KafkaZookeeperNetwork)
            .dependOnContainerPorts(ZookeeperDocker)(2181 -> "KAFKA_ZOOKEEPER_CONNECT")
        }
      }
  11. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def modifyConfig(modify: (ContainerConfig[T]) => ContainerConfig[T]): Functoid[ContainerResource[F, T]]
  14. def modifyConfig(modify: Functoid[(ContainerConfig[T]) => ContainerConfig[T]])(implicit tag: distage.Tag[ContainerResource[F, T]]): Functoid[ContainerResource[F, T]]

    Allows you to modify Docker.ContainerConfig while summoning additional dependencies from the object graph using izumi.distage.model.providers.Functoid.

    Allows you to modify Docker.ContainerConfig while summoning additional dependencies from the object graph using izumi.distage.model.providers.Functoid.

    Example:

    KafkaDocker
      .make[F]
      .modifyConfig {
        (zookeeperDocker: ZookeeperDocker.Container, net: KafkaZookeeperNetwork.Network) =>
          (old: KafkaDocker.Config) =>
            val zkEnv = KafkaDocker.config.env ++ Map("KAFKA_ZOOKEEPER_CONNECT" -> s"${zookeeperDocker.hostName}:2181")
            val zkNet = KafkaDocker.config.networks + net
            old.copy(env = zkEnv, networks = zkNet)
      }
  15. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped