testcontainers_gleam
Gleam TestContainers wrapper around Elixir TestContainers
gleam add --dev testcontainers_gleam
import testcontainers_gleam.{Config}
pub fn main() {
let start_info =
testcontainers_gleam.start_container(Config(
"redis:7.4-rc1-alpine3.20",
6379,
))
// start_info.port contains host port
testcontainers_gleam.stop_container(start_info.container_id)
}
Further documentation can be found at https://hexdocs.pm/testcontainers_gleam.
Development
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell