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 |
C# equivalent found here
open DotNet.Testcontainers.Builders
open Image
open System
let imageName =
image {
name (Guid.NewGuid().ToString("D"))
directory' (CommonDirectoryPath.GetSolutionDirectory()) "src"
dockerfile "Dockerfile"
} |> Image.build
C# equivalent found here
open Container
let container =
container {
entrypoint "nginx"
commands [|"-t"|]
} |> Container.build