Skip to content

Commit ec4430d

Browse files
committed
Limit maxprocs for Rancher
1 parent d9f2fb6 commit ec4430d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_go.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ def test_rancher_build(
203203
pytest.skip(f"Rancher requires {go_mod_version}, but got {go_version}")
204204

205205
(rancher_dir / "Dockerfile.dapper").write_text(
206-
from_line_regex.sub(f"FROM {container.image_url_or_id}", contents)
206+
from_line_regex.sub(
207+
f"FROM {container.image_url_or_id}\nENV GOMAXPROCS=2", contents
208+
)
207209
)
208210

209211
host.check_output(f"cd {rancher_dir} && {dapper} build")

0 commit comments

Comments
 (0)