Skip to content

smaller images: remove docs files and build artifacts, consolidate layers#368

Open
jameslamb wants to merge 3 commits intorapidsai:mainfrom
jameslamb:slimmer-images
Open

smaller images: remove docs files and build artifacts, consolidate layers#368
jameslamb wants to merge 3 commits intorapidsai:mainfrom
jameslamb:slimmer-images

Conversation

@jameslamb
Copy link
Member

@jameslamb jameslamb commented Feb 24, 2026

Contributes to rapidsai/shared-workflows#505

A couple of small changes aimed at reducing image sizes (and therefore pull times in CI):

  • consolidates some RUN steps (fewer layers = smaller image)
  • removes man pages and other docs
    • adds --nodocs to every dnf install
    • manually removes /usr/share/man and similar
  • consolidates some package-install calls (fewer solves = faster builds)
  • changes specific to rockylinux8 ci-wheel images:
    • removes 450+ MB (uncompressed) of left-behind OpenSSL build artifacts in /tmp
    • removes gcc install (we're already installing gcc-toolset-* packages)

Notes for reviewers

Impact of these changes

For CUDA 12.9.1, Python 3.11, x86_64, rockylinux8:

image before after
ci-conda 750.78 MB (link) 748.72 MB (link)
ci-wheel 5.24 GB (link) 5.14 GB (link)

So not a huge change, but 100MB compressed cut out of ci-wheel is decent! Let's merge this and see if pull times improve.

@jameslamb jameslamb added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Feb 24, 2026
@jameslamb jameslamb marked this pull request as ready for review February 24, 2026 20:51
@jameslamb jameslamb requested a review from a team as a code owner February 24, 2026 20:51
@jameslamb jameslamb requested review from bdice and removed request for a team February 24, 2026 20:51
@jameslamb jameslamb changed the title WIP: smaller images: remove docs files and build artifacts, consolidate layers smaller images: remove docs files and build artifacts, consolidate layers Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant