1eyewonder / Fs.TestContainers

Fs.TestContainers is a wrapper around the fluent builders found in testcontainers-dotnet
MIT License
1 stars 0 forks source link
docker fsharp testing-tools

Fs.TestContainers (in development)

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.

Builds

GitHub Actions
GitHub Actions
Build History

NuGet

Package Stable Prerelease
Fs.TestContainers NuGet Badge NuGet Badge

Examples

Images

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

Containers

C# equivalent found here

open Container

let container =
    container {
        entrypoint "nginx"
        commands [|"-t"|]
    } |> Container.build