Skip to content

Commit 5083bdf

Browse files
committed
Added Hardcoded limits for now
1 parent f3704f7 commit 5083bdf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ pub fn build(
429429
// change directory to program/build dir
430430
let mount_params = format!("{}:{}", mount_path, workdir);
431431
let container_id = std::process::Command::new("docker")
432-
.args(["run", "--rm", "-v", &mount_params, "-dit", &image, "bash"])
432+
.args(["run", "--rm", "-v", &mount_params, "-dit","--memory=4g","--cpus=2", &image, "bash"])
433433
.stderr(Stdio::inherit())
434434
.output()
435435
.map_err(|e| anyhow::format_err!("Docker build failed: {}", e.to_string()))

0 commit comments

Comments
 (0)