feat(new): inline resource overrides — --cpu, --memory, --disk #59
No reviewers
Labels
No labels
blocked
blocker:ci-red
blocker:conflict
blocker:drill-pending
blocker:unrequested
bug
claimed
documentation
enhancement
epic
merge-next
needs-triage
ready
release
scope:cli
scope:drill
scope:host
scope:installer
scope:templates
scope:tiers
stale
state:addressing
state:bots-reviewing
state:building
state:needs-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: heavy-duty/box#59
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/new-resource-flags"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #57.
What
BOX_CPU/BOX_MEMORY/BOX_DISKenv (kept — it's the scripting form and how the drill shrinks boxes on small hosts) > templatebox.env> defaults.limits.cpu,limits.memory, rootsize=) — its units, its validation; box adds no parser of its own.security.*key, on purpose. The trust boundary stays out of the caller's reach.--fromrefuses the flags (exit 2, before touching anything): a clone carries its source's resources; changing them after isbox incus's job.--diskon a container mint prints a note instead of silently dropping (a container's root rides the pool).Drill
The blank mint now carries
--cpu 1 --memory 1GiBand asserts the limits landed — which doubles as the precedence proof, since the drill exportsBOX_CPU/BOX_MEMORYon small hosts and the flag must win. Plus a negative check:--from+ a resource flag is refused. (+2 checks.)Verified live
On a real stack (container mint, cached image):
BOX_CPU=3 box new --name rflag --container --cpu 1 --memory 1GiB --disk 9GiB→limits.cpu=1,limits.memory=1GiB(flag beat env), container--disknote printedbox new --name x --from nowhere --cpu 2→ refused, exit 2box help newdocuments the flags and the resolution order🤖 Generated with Claude Code