blob: 788634e727b112300bad6c4cf87c52ac2481d91a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
extern crate shiplift;
use shiplift::{BuildOptions, Docker};
use std::env;
fn main() {
let docker = Docker::new();
if let Some(path) = env::args().nth(1) {
let image = docker
.images()
.build(&BuildOptions::builder(path).tag("shiplift_test").build())
.unwrap();
for output in image {
println!("{:?}", output);
}
}
}
|