Skip to content

Commit

Permalink
infra/image/start.sh: Disable selection of cpus.
Browse files Browse the repository at this point in the history
On Github and Azure, Ubuntu 22.04 images do not allow the selection of
the CPU numbers.
  • Loading branch information
rjeffman committed Oct 15, 2024
1 parent 40b08c8 commit 942d509
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion infra/image/shcontainer
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ container_create() {
--hostname "${hostname}" \
--network bridge:interface_name=eth0 \
--systemd true \
--cpus "${cpus}" \
--memory "${memory}" \
--memory-swap -1 \
--no-hosts \
--replace \
"${image}"

# Ubuntu 22.04 does not provide 'cpu' in cgroups in Github/Azure
# --cpus "${cpus}" \
echo
}

Expand Down

0 comments on commit 942d509

Please sign in to comment.