View Source Testcontainers.Container (testcontainers v0.9.1)

Summary

Functions

Gets the host port on the container for the given exposed port.

A constructor function to make it easier to construct a container

Sets a file or the directory on the host machine to be mounted into a container.

Sets an environment variable to the container.

Adds a port to be exposed on the container.

Adds multiple ports to be exposed on the container.

Sets a label to apply to the container object in docker.

Sets multiple waiting strategies for the container.

Sets a waiting strategy for the container.

Functions

Link to this function

mapped_port(container, port)

View Source

Gets the host port on the container for the given exposed port.

A constructor function to make it easier to construct a container

Link to this function

with_bind_mount(config, host_src, container_dest, options \\ "ro")

View Source

Sets a file or the directory on the host machine to be mounted into a container.

Link to this function

with_environment(config, key, value)

View Source

Sets an environment variable to the container.

Link to this function

with_exposed_port(config, port)

View Source

Adds a port to be exposed on the container.

Link to this function

with_exposed_ports(config, ports)

View Source

Adds multiple ports to be exposed on the container.

Link to this function

with_label(config, key, value)

View Source

Sets a label to apply to the container object in docker.

Link to this function

with_waiting_strategies(config, wait_fns)

View Source

Sets multiple waiting strategies for the container.

Link to this function

with_waiting_strategy(config, wait_fn)

View Source

Sets a waiting strategy for the container.