Repository navigation
Fix recursive permission update to reduce docker layer size - #1515
Conversation
9991e39 to
88d060f
Compare
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryThe PR replaces the final recursive world-write change with shared-group permission repairs beside each package install.
Reviews (2) · Last reviewed commit: "Remove redundant Docker build umasks" · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryThe latest revision moves the permission repair into Findings🔵 Improvement: docker/setup/install_isaaclab.sh:29: #1514 (still open): Since the last review, #1514 added a permission repair after its new cuRobo install. It still has two problems relative to this PR:
Whichever PR merges second needs to resolve that conflict. It should also change that RUN to bind-mount and call CI status: Pre-commit and the docs build passed. The Arena and cuRobo image builds were still running when this review ran. CI runs the image as root, so it doesn't check whether the runtime user can write to the venv. That still relies on the manual check in the PR description. VerdictShip it |
Signed-off-by: Qian Lin <qianl@nvidia.com>
Repair shared-group ownership and write access after package installs because uv can preserve read-only modes from cached wheels despite the build umask. Keep each repair in its installation layer to avoid duplicating the virtual environment in a later image layer. Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
dce50a1 to
3ddbcc3
Compare
Signed-off-by: Qian Lin <qianl@nvidia.com>
|
/review |
david-tingdahl-nvidia
left a comment
There was a problem hiding this comment.
Great! I've seen similar issues before, when global ch[own|mod] commands make image size balloon. Good riddance!
Signed-off-by: Qian Lin <qianl@nvidia.com>
Reduce the Docker image size by maintaining shared-group permissions in each package-installation layer. Repair restrictive modes preserved by package caches without duplicating the complete virtual environment in a final layer.
Why this change?
The Docker build made
/opt/isaaclab-venvwritable with a finalchmod -R a+rwX. Docker overlay storage copied every changed inode into that layer, producing a 12.9 GB uncompressed editable-install layer and increasing image pull and extraction time.Package installers can preserve restrictive modes from cached wheels. The Docker build therefore needs an explicit permission repair after each installation so the documented non-root runtime user can update the shared environment.
What changes?
isaac-simshared group when it is created.docker/setup/repair_venv_permissions.sh.chmodthat duplicated the virtual environment.Dynamically created runtime users continue to receive membership in the
isaac-simgroup.Validation
/opt/isaaclab-venvbelongs to theisaac-simgroup and is group-writable.