You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently use CLI commands to build our local docker image for our tests:
let output = Command::new(DOCKER_BINARY).args(["buildx","build","--file",self.dockerfile.to_str().unwrap(),"--force-rm","--tag",&self.build_name,"..",]).output()
Current Behavior
We currently use CLI commands to build our local docker image for our tests:
Expected Behavior
We switch to using the bollard crate.
For example, see:
https://github.com/fussybeaver/bollard/blob/master/examples/build.rs
Why -> code robustness and maintainability. We'll have a better Rust integration, type safety, and error handling compared to CLI commands.
Also, bollard is actually used by test-containers-rs.
Alternative
Maybe it's cool to dig more the
testcontainer-rs
crate and contribute with anImageBuilder
struct or something. They also use bollard under the hood.The text was updated successfully, but these errors were encountered: