SRE-3874 ci: optimized docker images size (#18606)#18708
Merged
phender merged 1 commit intoJul 24, 2026
Conversation
Reduce CI Docker image footprint with new minimal build-ci stage and make image build process faster. Summary This PR introduces a new minimal Docker image variant for CI, called build-ci, to reduce image size, startup cost, and infrastructure pressure across Jenkins and GitHub Actions. Key outcomes Adds a minimal build-ci image profile optimized for CI compilation and packaging workflows. Keeps full image flow available for broader/local build use cases. Reduces build-ci image footprint from about 12 GiB to about 2 GiB. Improves Docker image setup time by reducing package/install scope in CI paths. Lowers memory/storage consumption in Jenkins pipelines. Reduces cache and runner resource pressure in GitHub Actions workflows. Adds a new helper script to simplify and standardize DAOS RPM build execution in Docker. Why this matters CI runners spend less time pulling/building heavy images. More jobs can run reliably within existing storage/memory budgets. Pipeline behavior becomes more predictable by separating CI-minimal and full-build concerns. RPM build flow is easier to run and reproduce locally and in automation. Scope of changes Docker stage restructuring to support dedicated build-ci and build-local/full paths. Workflow updates to explicitly target lighter Docker stages where appropriate. Package installation split to keep optional/heavier dependencies out of build-ci. New Docker-driven RPM build helper script for repeatable artifact generation. Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@hpe.com>
|
Errors are Unable to load ticket data |
grom72
marked this pull request as ready for review
July 22, 2026 21:09
daltonbohning
approved these changes
Jul 22, 2026
ryon-jensen
approved these changes
Jul 23, 2026
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.
Reduce CI Docker image footprint with new minimal build-ci stage and make image build process faster.
Summary
This PR introduces a new minimal Docker image variant for CI, called build-ci, to reduce image size, startup cost, and infrastructure pressure across Jenkins and GitHub Actions.
Key outcomes
Adds a minimal build-ci image profile optimized for CI compilation and packaging workflows. Keeps full image flow available for broader/local build use cases. Reduces build-ci image footprint from about 12 GiB to about 2 GiB. Improves Docker image setup time by reducing package/install scope in CI paths. Lowers memory/storage consumption in Jenkins pipelines. Reduces cache and runner resource pressure in GitHub Actions workflows. Adds a new helper script to simplify and standardize DAOS RPM build execution in Docker.
Why this matters
CI runners spend less time pulling/building heavy images. More jobs can run reliably within existing storage/memory budgets. Pipeline behavior becomes more predictable by separating CI-minimal and full-build concerns. RPM build flow is easier to run and reproduce locally and in automation.
Scope of changes
Docker stage restructuring to support dedicated build-ci and build-local/full paths. Workflow updates to explicitly target lighter Docker stages where appropriate. Package installation split to keep optional/heavier dependencies out of build-ci. New Docker-driven RPM build helper script for repeatable artifact generation.
Backport of: #18606
Steps for the author:
After all prior steps are complete: