View Source Testcontainers.ContainerBuilder protocol (testcontainers v1.11.6)

All types of predefined containers must implement this protocol.

Summary

Types

Functions

Link to this function

after_start(builder, container, connection)

View Source
@spec after_start(
  t(),
  %Testcontainers.Container{
    auth: term(),
    auto_remove: term(),
    bind_mounts: term(),
    bind_volumes: term(),
    check_image: term(),
    cmd: term(),
    container_id: term(),
    environment: term(),
    exposed_ports: term(),
    force_reuse: term(),
    image: term(),
    ip_address: term(),
    labels: term(),
    network_mode: term(),
    privileged: term(),
    reuse: term(),
    wait_strategies: term()
  },
  %Tesla.Env{
    __client__: term(),
    __module__: term(),
    body: term(),
    headers: term(),
    method: term(),
    opts: term(),
    query: term(),
    status: term(),
    url: term()
  }
) :: :ok | {:error, term()}

Do stuff after container has started.

@spec build(t()) :: %Testcontainers.Container{
  auth: term(),
  auto_remove: term(),
  bind_mounts: term(),
  bind_volumes: term(),
  check_image: term(),
  cmd: term(),
  container_id: term(),
  environment: term(),
  exposed_ports: term(),
  force_reuse: term(),
  image: term(),
  ip_address: term(),
  labels: term(),
  network_mode: term(),
  privileged: term(),
  reuse: term(),
  wait_strategies: term()
}