Fs.TestContainers is a wrapper around the fluent builders found in testcontainers-dotnet. It allows us to create images, containers, etc. using the F# computation expression syntax.
GitHub Actions |
---|
Package | Stable | Prerelease |
---|---|---|
Fs.TestContainers |
let myImage =
image {
name "somecoolimage"
directory "testing"
dockerfile "Dockerfile"
}
|> ImageBuilder.build
let container =
container {
image myImage
commands [| "-t" |]
autoRemove
}
|> ContainerBuilder.build
---