Repository navigation
Conversation
Dockerfile.kitless was the only image whose final stage was not the stage that
ran the install, so its uv settings had to be declared twice; nvbugs 6732972 was
the runtime stage missing them. Merging the stages removes that class of bug.
The builder stage existed to keep a compiler out of the runtime. On x86_64 none
of the 222 installed distributions is built locally, so build-essential, cmake
and python3-dev were 339 MB of unused toolchain. psutil and pyopengl-accelerate
publish no aarch64 wheels, so their build dependencies are installed on arm64
only, guarded by dpkg --print-architecture as Dockerfile.base does.
Install through a uv cache mount as the Isaac Sim images do. The mount targets
${HOME}/.cache/uv rather than root's because this image sets HOME for the whole
build, and UV_CACHE_DIR pins the two together so an unmatched mount cannot bake
the cache into a layer.
Retarget UV_PYTHON at the venv after the sync, as Dockerfile.base and
Dockerfile.curobo already do, so a runtime uv pip install does not resolve to
the externally managed system interpreter.
Assert the fix on the built image rather than on the Dockerfile text, and pass
verify-test-path in kitless-docker.yml, which had never run the image invariants
against this image.
hujc7
force-pushed
the
jichuanh/kitless-single-stage-refactor
branch
from
September 10, 2026 16:30
1823dd9 to
eaec496
Compare
This branch has not been deployed
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.
Summary
The kit-less image drops from 159 to 114 Dockerfile lines and stops installing a C toolchain
it never uses on x86_64, while a
uv runinvariant runs against the built image for the firsttime. Cold build 109 s, image unchanged at 15.46 GB.
Description
Stacked on #7628 — that PR carries the four runtime
uvsettings for NVBug 6732972 and shouldmerge first. Until it does, this PR's diff shows its commits too.
1. Single stage
Dockerfile.kitlesswas the repo's only image whose final stage was not the stage that ran theinstall, which is why
ENVhad to be declared twice and why nvbugs 6732972 was possible at all.Merging the stages removes that class of bug rather than patching it.
The builder stage existed to keep a compiler out of the runtime. Measured: 0 of 222 installed
distributions are locally built on x86_64, so
build-essential,cmakeandpython3-devwere339 MB of unused toolchain.
psutil==5.9.8andpyopengl-accelerate==3.1.10publish no aarch64wheels, so those build deps are restored for arm64 only, as
Dockerfile.basealready does.2. uv cache mount
Kit-less was the only image without one; base and cuRobo have used
--mount=type=cachesince#7405. The mount targets
${HOME}/.cache/uvrather than root's, because this image setsHOMEfor the whole build — an unmatched target silently bakes the cache into the layer.
3. Built-image invariant
kitless-docker.ymlnever passedverify-test-path, sodocker/test/test_image_invariants.pyhad never run against this image. It now does, with a new assertion that
uv runresolves theshipped environment. Verified to fail on an image with
UV_PROJECT_ENVIRONMENTremoved and passon the fixed one.
4. Validation
Measured on an RTX PRO 6000 (Blackwell), amd64:
--no-cachebuild--gpus alluv runwithsource/bind-mounted read-only/opt/isaaclab-venv, no stray.venvdocker/testuv run isaaclab -farm64 is not verified. PR CI builds amd64 only; the aarch64 path is exercised by
publish-images.yamlafter merge. The conditional is confirmed inert on amd64.A two-phase
uv sync(deps, then workspace) was measured and rejected: it made a source-editrebuild 6.9× slower (468 s vs 68 s) and the image 14.9 GB larger, because the second sync
rewrites the venv in a later layer.
Type of change
Release backport
developChecklist
pre-commitchecks with./isaaclab.sh --formatsource/<pkg>/changelog.d/for every touched packageCONTRIBUTORS.mdor my name already exists there