View Source Testcontainers.EmqxContainer (testcontainers v1.11.6)
Provides functionality for creating and managing EMQX container configurations.
Summary
Functions
Retrieves the default Docker image for the Emqx container.
Returns the address on the host machine where the Emqx container is listening.
Returns the port on the host machine where the Emqx container is listening.
Creates a new EmqxContainer
struct with default configurations.
Set the regular expression to check the image validity.
Overrides the default image used for the Emqx container.
Set the reuse flag to reuse the container if it is already running.
Functions
Retrieves the default Docker image for the Emqx container.
Returns the address on the host machine where the Emqx container is listening.
Returns the port on the host machine where the Emqx container is listening.
Creates a new EmqxContainer
struct with default configurations.
Set the regular expression to check the image validity.
Overrides the default image used for the Emqx container.
Examples
iex> config = EmqxContainer.new()
iex> new_config = EmqxContainer.with_image(config, "emqx:xyz")
iex> new_config.image
"emqx:xyz"
with_ports(config, mqtt_port \\ 1883, mqtts_port \\ 8883, mqtt_over_ws_port \\ 8083, mqtt_over_wss_port \\ 8084, dashboard_port \\ 18083)
View SourceSet the reuse flag to reuse the container if it is already running.