|
|
@ -74,7 +74,7 @@ impl Build {
|
|
|
|
async fn podman_build(&self) -> AppResult<()> {
|
|
|
|
async fn podman_build(&self) -> AppResult<()> {
|
|
|
|
let uid = uid();
|
|
|
|
let uid = uid();
|
|
|
|
|
|
|
|
|
|
|
|
let podman = Podman::new(format!("unix:///var/run/user/{}/podman/podman.sock", uid))?;
|
|
|
|
let podman = Podman::new(format!("unix:///var/run/user/{uid}/podman/podman.sock"))?;
|
|
|
|
let image = self.kind.image().unwrap();
|
|
|
|
let image = self.kind.image().unwrap();
|
|
|
|
|
|
|
|
|
|
|
|
let buildfile = fs::read_to_string(".mlc/Buildfile")?;
|
|
|
|
let buildfile = fs::read_to_string(".mlc/Buildfile")?;
|
|
|
@ -114,11 +114,11 @@ impl Build {
|
|
|
|
println!("{}", chunk.stream);
|
|
|
|
println!("{}", chunk.stream);
|
|
|
|
let _ = log_file.write(chunk.stream.as_bytes())?;
|
|
|
|
let _ = log_file.write(chunk.stream.as_bytes())?;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Err(e) => eprintln!("{}", e),
|
|
|
|
Err(e) => eprintln!("{e}"),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Err(e) => eprintln!("{}", e),
|
|
|
|
Err(e) => eprintln!("{e}"),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
podman
|
|
|
|
podman
|
|
|
@ -177,7 +177,7 @@ impl Build {
|
|
|
|
&CopyOptions::new(),
|
|
|
|
&CopyOptions::new(),
|
|
|
|
)?;
|
|
|
|
)?;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Err(e) => eprintln!("{}", e),
|
|
|
|
Err(e) => eprintln!("{e}"),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|