implicit final class DockerProviderExtensions[F[_], T] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DockerProviderExtensions
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new DockerProviderExtensions(self: Functoid[ContainerResource[F, T]])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def connectToNetwork[T2](implicit tag1: distage.Tag[ContainerNetwork[T2]], tag2: distage.Tag[ContainerResource[F, T]], tag3: distage.Tag[ContainerConfig[T]]): Functoid[ContainerResource[F, T]]
- 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]]
- def dependOnContainer[T2](implicit tag: distage.Tag[DockerContainer[T2]], selfTag: distage.Tag[DockerContainer[T]], mutateModule: model.definition.dsl.ModuleDefDSL.MutationContext): Functoid[ContainerResource[F, T]]
- 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]]
- 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]]
- 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
class KafkaDockerModule[F[_]: TagK] extends ModuleDef { make[KafkaDocker.Container].fromResource { KafkaDocker .make[F] .connectToNetwork(KafkaZookeeperNetwork) .dependOnContainerPorts(ZookeeperDocker)(2181 -> "KAFKA_ZOOKEEPER_CONNECT") } }
Example: - def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def modifyConfig(modify: (ContainerConfig[T]) => ContainerConfig[T]): Functoid[ContainerResource[F, T]]
- 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) }
- def toString(): String
- Definition Classes
- Any