Skip to content

move more shared code into scripts#840

Merged
rapids-bot[bot] merged 5 commits intorapidsai:mainfrom
jameslamb:use-scripts
Jan 20, 2026
Merged

move more shared code into scripts#840
rapids-bot[bot] merged 5 commits intorapidsai:mainfrom
jameslamb:use-scripts

Conversation

@jameslamb
Copy link
Copy Markdown
Member

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-cuda with the inline contents of the Dockerfile used 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.

@jameslamb jameslamb changed the title WIP: move more shared code into scripts move more shared code into scripts Jan 20, 2026
@jameslamb jameslamb marked this pull request as ready for review January 20, 2026 21:07
@jameslamb jameslamb requested a review from a team as a code owner January 20, 2026 21:07
@jameslamb jameslamb requested a review from bdice January 20, 2026 21:07
@jameslamb
Copy link
Copy Markdown
Member Author

/merge

@rapids-bot rapids-bot bot merged commit c56724b into rapidsai:main Jan 20, 2026
109 of 110 checks passed
@jameslamb jameslamb deleted the use-scripts branch January 20, 2026 22:20
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEA] Decouple this project from rapidsai/ci-imgs

2 participants