Parent: #2491
Idea
ROCm pytorch images are the largest matrix builds. Peak disk during uv pip install + de-vendor-torch.sh may hit 100% before the build finishes — pruning after success does not help.
Approach
In jupyter/rocm/pytorch/ubi9-python-3.12/Dockerfile.konflux.rocm and runtimes/rocm-pytorch/ubi9-python-3.12/Dockerfile.konflux.rocm:
- Delete pip/uv cache in the same
RUN layer as install (rm -rf /root/.cache/uv)
- Remove torch vendored ROCm blobs before
de-vendor-torch.sh symlinks system libs (script already rm -rfs rocblas/hipblaslt dirs — ensure ordering minimizes peak usage)
- Strip unnecessary artifacts where safe (
__pycache__, static .a in site-packages if not needed at runtime)
Compare with green rocm-jupyter-tensorflow Dockerfile for patterns that keep peak disk lower.
Out of scope
Acceptance criteria
Parent: #2491
Idea
ROCm pytorch images are the largest matrix builds. Peak disk during
uv pip install+de-vendor-torch.shmay hit 100% before the build finishes — pruning after success does not help.Approach
In
jupyter/rocm/pytorch/ubi9-python-3.12/Dockerfile.konflux.rocmandruntimes/rocm-pytorch/ubi9-python-3.12/Dockerfile.konflux.rocm:RUNlayer as install (rm -rf /root/.cache/uv)de-vendor-torch.shsymlinks system libs (script alreadyrm -rfsrocblas/hipblasltdirs — ensure ordering minimizes peak usage)__pycache__, static.ain site-packages if not needed at runtime)Compare with green
rocm-jupyter-tensorflowDockerfile for patterns that keep peak disk lower.Out of scope
podman system prune(see [rhoai-2.25] RHAIENG-6036: prune podman storage around ROCm matrix builds #2489 / parent rhoai-2.25: backport main CI disk strategy (#3965/#3967) to fix ROCm matrix ENOSPC #2491)Acceptance criteria
make rocm-jupyter-pytorch-ubi9-python-3.12completes on GHA amd64 without ENOSPCmake rocm-runtime-pytorch-ubi9-python-3.12same