5 releases
0.2.2 | May 7, 2024 |
---|---|
0.2.1 | Sep 9, 2022 |
0.2.0 | Jun 30, 2022 |
0.1.1 | Jun 14, 2022 |
0.1.0 | Jun 10, 2022 |
#4 in #stop
41 downloads per month
Used in 2 crates
15KB
418 lines
MCAI Docker
This crate is a wrapper on bollard crate to enable starting a MCAI worker with Docker.
Usage
use bollard::Docker;
use mcai_docker::McaiDocker;
use std::io::stdout;
#[tokio::main]
async fn main() {
let docker = Docker::connect_with_socket_defaults().unwrap();
let mcai_docker = McaiDocker::new(docker);
mcai_docker
.run_worker(
"mcai_worker_image_name",
&[("KEY1", Box::new("VALUE1"))],
Some(&mut stdout()),
)
.await
.unwrap();
}
Dependencies
~15–27MB
~427K SLoC