Skip to content

Instantly share code, notes, and snippets.

@nickbabcock
Last active August 29, 2019 11:06
Show Gist options
  • Save nickbabcock/c7bdc8e5974ed9956abf46ffd7dc13ff to your computer and use it in GitHub Desktop.
Save nickbabcock/c7bdc8e5974ed9956abf46ffd7dc13ff to your computer and use it in GitHub Desktop.
cross patch
diff --git a/src/docker.rs b/src/docker.rs
index 99a4883..84883fd 100644
--- a/src/docker.rs
+++ b/src/docker.rs
@@ -62,7 +62,7 @@ pub fn register(target: &Target, verbose: bool) -> Result<()> {
docker_command("run")
.arg("--privileged")
.arg("--rm")
- .arg("-it")
+ .arg("-i")
.arg("ubuntu:16.04")
.args(&["sh", "-c", cmd])
.run(verbose)
@@ -160,7 +160,7 @@ pub fn run(target: &Target,
.args(&["-v", &format!("{}:/rust:Z,ro", sysroot.display())])
.args(&["-v", &format!("{}:/target:Z", target_dir.display())])
.args(&["-w", "/project"])
- .args(&["-it", &image(toml, target)?])
+ .args(&["-i", &image(toml, target)?])
.args(&["sh", "-c", &format!("PATH=$PATH:/rust/bin {:?}", cmd)])
.run_and_get_status(verbose)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment