Rusty Docker Compose
rusty-docker-compose
is a Rust library for managing Docker Compose, specifically designed for integration testing. It provides convenient control over container lifecycles and logging.
Features
- Start and stop Docker Compose services with ease
- Log container outputs for inspection
- Designed with integration testing in mind
Installation
Add rusty-docker-compose
as a dependency in your Cargo.toml
file:
[]
= "0.2.1"
Usage
Here's a basic example of how to use rusty-docker-compose:
use DockerCompose;
let docker_compose = new;
docker_compose.up;
// ... run your tests ...
docker_compose.down;
For more detailed examples, please refer to the documentation.