#docker #unit-testing #async #shiplift #containerised

harbourmaster

Convenient, high-level abstractions of running Docker containers

7 releases (breaking)

0.5.0 Nov 30, 2021
0.4.0 May 27, 2021
0.3.1 May 22, 2021
0.3.0 Aug 4, 2019
0.0.0 May 24, 2019

#772 in Unix APIs


Used in 2 crates

Apache-2.0

20KB
339 lines

harbourmaster

Continuous integration Latest Docs

Harbourmaster is a library of high-level abstractions of Docker objects.

Harbourmaster is built on top of the excellent 'shiplift', but provides an object-oriented interface that is a little easier to work with for some use cases.

Particularly useful for unit testing that involves spinning up and then removing Docker containers.

Usage

use harbourmaster::Container;

#[tokio::main]
async fn main() {
    let image = "alpine";

    println!("creating container!");
    let container = Container::new(image).await.unwrap();
    println!("container created!");

    println!("removing container!");
    container.delete().await.unwrap();
    println!("container removed!");
}

Current version: 0.5.0

License: Apache-2.0

Dependencies

~11–23MB
~342K SLoC