move more shared code into scripts#840
Merged
rapids-bot[bot] merged 5 commits intorapidsai:mainfrom Jan 20, 2026
Merged
Conversation
5 tasks
b849bf3 to
6d6f0f6
Compare
bdice
approved these changes
Jan 20, 2026
Member
Author
|
/merge |
This was referenced Jan 23, 2026
rapids-bot bot
pushed a commit
to rapidsai/ci-imgs
that referenced
this pull request
Jan 27, 2026
…ance (#356) Similar to rapidsai/docker#840, proposes moving more shared code into scripts, to reduce duplication. ## Notes for reviewers ### Moves shared code into bind-mounted scripts Using scripts reduces duplication and therefore the risk of unintended inconsistencies. Using bind mounts instead of `ADD` / `COPY` keeps the docker context small and ensures those files only needed at build time don't end up in the built images. ### Combines `RUN` steps into fewer layers This can result in smaller images via better compression and avoids some per-layer overhead in building, pushing, and pulling. I tried to do these only in cases where it was very unlikely to change the caching behavior (like combining 2 steps that create static files / directories) or where I felt it notably improved code clarity. This images are pulled many many many more times than they're built and they're almost all built uncached on CI runnes, so I did not worry too much about the impact on *build* caching. ### Updates examples in docs to CUDA 13.1.0 ref: rapidsai/build-planning#236 Authors: - James Lamb (https://github.com/jameslamb) Approvers: - Gil Forsyth (https://github.com/gforsyth) URL: #356
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.
Closes #832
Follow-up to #836 (comment)
In #836, this repo's dependency on https://github.com/rapidsai/ci-imgs was removed by replacing
FROM rapidsai/miniforge-cudawith the inline contents of theDockerfileused to produce that image. That introduced a lot of duplication between the Dockerfiles there.This proposes reducing much of that duplication by moving shared code into scripts that are mounted in at build time.