UnMango.Docker.FSharp 0.0.4-alpha.0.22

This is a prerelease version of UnMango.Docker.FSharp.
dotnet add package UnMango.Docker.FSharp --version 0.0.4-alpha.0.22                
NuGet\Install-Package UnMango.Docker.FSharp -Version 0.0.4-alpha.0.22                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="UnMango.Docker.FSharp" Version="0.0.4-alpha.0.22" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add UnMango.Docker.FSharp --version 0.0.4-alpha.0.22                
#r "nuget: UnMango.Docker.FSharp, 0.0.4-alpha.0.22"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install UnMango.Docker.FSharp as a Cake Addin
#addin nuget:?package=UnMango.Docker.FSharp&version=0.0.4-alpha.0.22&prerelease

// Install UnMango.Docker.FSharp as a Cake Tool
#tool nuget:?package=UnMango.Docker.FSharp&version=0.0.4-alpha.0.22&prerelease                

Docker.FSharp

Build Codecov GitHub Release NuGet Version NuGet Downloads

This library defines a computation expression that can be used to describe Docker operations.

Not to be confused with Docker.DotNet.FSharp!

Install

Usage

The majority of the library is still a work in progress.

Currently, a very basic series of image and container operations can be defined using the docker builder.

let dockerActions = docker {
    Image.create {
        fromImage "ubuntu"
        tag "latest"
    }
    Container.create "my-container" {
        entrypoint "bash"
    }
}

It's worth noting that no interaction with the docker API is actually performed. The intent is to provide the ability to describe operations that a client can consume to perform operations.

The sister library, Docker.DotNet.FSharp, is one such consumer that provides Docker.run to execute operations using Docker.DotNet.

Development

At a minimum, the .NET SDK is required. At the time of writing this project is built with .NET 9.0 which you can find here. The specific version is defined in global.json.

It might be a good idea to install make but it is not required.

If you do however, you can just clone the repo and run make.

This will:

  • Restore dependencies
  • Restore tools (like fantomas)
  • Build the solution
  • Run the linter
  • Run tests

There are a number of make targets for common tasks such as build, test, lint, format and pack.

You can also use the dotnet CLI like normal.

dotnet build
dotnet test

A solution file is provided for IDE's that support it, such as Rider, Visual Studio, and Ionide.

If you prefer a devcontainer, there is a barebones definition in .devcontainer/devcontainer.json. It's not fully configured yet, so you may need to install some tools manually.

You can run make devcontainer to build the container with the devcontainers-cli. This command requires Node.js and npx (shipped with node).

Q/A

Why make?

It makes me feel smarter than I actually am.

Why use the preview SDK?

I like living on the edge.

The name seems like it was chosen deliberately to be confusing.

That's not a question, get off my back man.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on UnMango.Docker.FSharp:

Package Downloads
UnMango.Docker.DotNet.FSharp

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.4-alpha.0.22 47 9/30/2024
0.0.4-alpha.0.21 47 9/24/2024
0.0.4-alpha.0.20 34 9/17/2024
0.0.4-alpha.0.19 44 9/14/2024
0.0.4-alpha.0.18 43 9/13/2024
0.0.4-alpha.0.17 47 9/10/2024
0.0.4-alpha.0.16 43 9/6/2024
0.0.4-alpha.0.15 48 9/6/2024
0.0.4-alpha.0.14 70 8/23/2024
0.0.4-alpha.0.13 60 8/16/2024
0.0.4-alpha.0.12 57 8/8/2024
0.0.4-alpha.0.11 48 7/12/2024
0.0.4-alpha.0.10 44 7/10/2024
0.0.4-alpha.0.9 51 6/10/2024
0.0.4-alpha.0.8 54 6/6/2024
0.0.4-alpha.0.7 48 6/1/2024
0.0.4-alpha.0.6 58 6/1/2024
0.0.4-alpha.0.5 46 6/1/2024
0.0.4-alpha.0.4 54 5/31/2024
0.0.4-alpha.0.3 46 5/30/2024
0.0.4-alpha.0.2 62 5/23/2024
0.0.4-alpha.0.1 59 5/23/2024
0.0.3 164 5/8/2024
0.0.3-alpha.0.1 48 5/8/2024
0.0.2 57 5/8/2024
0.0.2-alpha.0.4 57 5/8/2024
0.0.2-alpha.0.3 57 5/8/2024
0.0.2-alpha.0.2 55 5/8/2024
0.0.2-alpha.0.1 61 5/7/2024
0.0.1 70 5/7/2024
0.0.1-alpha.9 62 5/7/2024
0.0.1-alpha.8 62 5/7/2024
0.0.1-alpha.7 67 5/7/2024
0.0.1-alpha.6 60 5/7/2024
0.0.1-alpha.5 54 5/6/2024
0.0.1-alpha.4 78 5/6/2024
0.0.1-alpha.3 71 5/6/2024