(runtime: &str)
| 27 | } |
| 28 | |
| 29 | fn image_exists(runtime: &str) -> bool { |
| 30 | Command::new(runtime) |
| 31 | .args(["image", "inspect", BUILDER_IMAGE]) |
| 32 | .stdout(Stdio::null()) |
| 33 | .stderr(Stdio::null()) |
| 34 | .status() |
| 35 | .map(|s| s.success()) |
| 36 | .unwrap_or(false) |
| 37 | } |
| 38 | |
| 39 | fn build_builder_image(runtime: &str) -> Result<(), Box<dyn std::error::Error>> { |
| 40 | println!("[+] Building {} image (first run only)...", BUILDER_IMAGE); |
no outgoing calls
no test coverage detected