Skip to content

Bugfix release

Compare
Choose a tag to compare
@mariotoffia mariotoffia released this 10 Sep 05:47
· 327 commits to master since this release

SharpCompress

This release fixes a few bugs and updates the SharpCompress reference since it has a bug where it may allow someone to overwrite and execute outside of the extraction point. This is not affecting FluentDocker since it has full control on whats gets extracted. However, if you use this transient reference for your own unzipping this will fix this problem.

Buildparameters

Fixed where container build parameters where sent incorrectly (for a docker build).

Composite Container Disposal

When a ICompositeContainerService is shutdown, the referenced containers, images, and hosts was not unreferenced. Now those will be cleared, and it is illegal to access any of those instances (if stored in a variable) after this.

Execute docker command on running container

It is now "Prettier" do to a Exec on a container, instead of

        using (var c = Fd.UseContainer().UseImage("<your-image>").Build().Start())
        {
           c.DockerHost.Execute(c.Id, "command and args", c.Certificates);
        }

you now can do this

        using (var c = Fd.UseContainer().UseImage("<your-image>").Build().Start())
        {
           c.Execute("command and args");
        }

WaitForPort

Fixed but in WaitForPort where it did not count time spent waiting for the Connect to fail. Now it will sutract
this value and thus is closer to the set timeout. It is, however, not a exact time since no background thread and
CancellationToken mechanism is employed. This is by design until someone have a really good use-case to do this
on the millisecond.

Cheers,
Mario