Repository navigation
Bound the standalone launcher's container and tell the harness - #30
Merged
Merged
Conversation
The harness refuses to run a command that no cgroup bounds. In a container there is no systemd to scope each command, so the launcher has to pass the limits to Docker and set SPEAR_RESOURCE_CONTROL=delegated, as spear-docker.sh does. scripts/docker/spear did neither, and the terminal of a session started from it answered every command with "systemd-run is absent". The container also holds the user's own builds, so it gets three quarters of the machine's memory (SPEAR_CONTAINER_MEMORY for another bound) and 4096 processes, and no CPU bound.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A session started with
scripts/docker/spearcould not run any terminal command: the harness answeredresource control unavailable: systemd-run is absent.The harness refuses a command that no cgroup bounds. In a container the launcher must pass the limits to Docker and set
SPEAR_RESOURCE_CONTROL=delegated;spear-docker.shdoes, the standalone launcher did not.--memory(three quarters of the machine by default,SPEAR_CONTAINER_MEMORYin the configuration file for another bound),--pids-limit 4096, and the delegation variable on the samedocker run.Checked by replaying the failing turn (
pwdfrom a checkout, edg image): the command now runs.