Skip to content

Enhancement & Bugfixes

Compare
Choose a tag to compare
@mariotoffia mariotoffia released this 29 Jul 09:18
· 339 commits to master since this release

Hi,

This release is based on enhancements and bugfixes by me and @zentron. @zentron provided with the long exit code and health check support to the library.

It is now possible to use HealthCheck Fluent API to activate the healthcheck docker mechanism (see sample below).

 using (
        var container =
          Fd.UseContainer()
            .UseImage("postgres:latest", force: true)
            .HealthCheck("exit")
            .WithEnvironment("POSTGRES_PASSWORD=mysecretpassword")
            .Build()
            .Start())
      {
        var config = container.GetConfiguration(true);
        AreEqual(HealthState.Starting, config.State.Health.Status);
      }

Bugfix: The exit code is assumed to be a long since windows containers sometime exit with a long (such as Ctrl-C).

Docker machine response parser for inspect fails when e.g. --generic-ip-address=docker is set (Issue #90). The response parser will try to figure out if it is a IP address or a hostname when parsing and set the response accordingly.

Now it is possible to set ulimit on ContainerCreateParams and on
the fluent API (Issue #80).

using (
        var container =
          Fd.UseContainer()
            .UseImage("postgres:latest", force: true)
            .UseUlimit(Ulimit.NoFile,2048, 2048)
            .WithEnvironment("POSTGRES_PASSWORD=mysecretpassword")
            .Build()
            .Start())
      {
        // Container running under number of open file limit of 2048
      }

Cheers,
Mario