UnMango.Docker.FSharp 0.0.4-alpha.0.18

This is a prerelease version of UnMango.Docker.FSharp.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package UnMango.Docker.FSharp --version 0.0.4-alpha.0.18                
NuGet\Install-Package UnMango.Docker.FSharp -Version 0.0.4-alpha.0.18                
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.18" />                
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.18                
#r "nuget: UnMango.Docker.FSharp, 0.0.4-alpha.0.18"                
#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.18&prerelease

// Install UnMango.Docker.FSharp as a Cake Tool
#tool nuget:?package=UnMango.Docker.FSharp&version=0.0.4-alpha.0.18&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.20 21 9/17/2024
0.0.4-alpha.0.19 32 9/14/2024
0.0.4-alpha.0.18 33 9/13/2024
0.0.4-alpha.0.17 37 9/10/2024
0.0.4-alpha.0.16 36 9/6/2024
0.0.4-alpha.0.15 41 9/6/2024
0.0.4-alpha.0.14 66 8/23/2024
0.0.4-alpha.0.13 54 8/16/2024
0.0.4-alpha.0.12 51 8/8/2024
0.0.4-alpha.0.11 43 7/12/2024
0.0.4-alpha.0.10 40 7/10/2024
0.0.4-alpha.0.9 47 6/10/2024
0.0.4-alpha.0.8 50 6/6/2024
0.0.4-alpha.0.7 44 6/1/2024
0.0.4-alpha.0.6 54 6/1/2024
0.0.4-alpha.0.5 42 6/1/2024
0.0.4-alpha.0.4 49 5/31/2024
0.0.4-alpha.0.3 42 5/30/2024
0.0.4-alpha.0.2 58 5/23/2024
0.0.4-alpha.0.1 53 5/23/2024
0.0.3 142 5/8/2024
0.0.3-alpha.0.1 44 5/8/2024
0.0.2 53 5/8/2024
0.0.2-alpha.0.4 53 5/8/2024
0.0.2-alpha.0.3 53 5/8/2024
0.0.2-alpha.0.2 51 5/8/2024
0.0.2-alpha.0.1 57 5/7/2024
0.0.1 66 5/7/2024
0.0.1-alpha.9 58 5/7/2024
0.0.1-alpha.8 58 5/7/2024
0.0.1-alpha.7 61 5/7/2024
0.0.1-alpha.6 56 5/7/2024
0.0.1-alpha.5 50 5/6/2024
0.0.1-alpha.4 70 5/6/2024
0.0.1-alpha.3 63 5/6/2024