Skip to content

refactor(containerfile): split distro-specific and common build stages#53

Merged
feloy merged 1 commit into
mainfrom
base-image
Jun 2, 2026
Merged

refactor(containerfile): split distro-specific and common build stages#53
feloy merged 1 commit into
mainfrom
base-image

Conversation

@feloy

@feloy feloy commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

ubuntu() and fedora() duplicated the entire final stage verbatim. Extract ubuntu_system_stage() and fedora_system_stage() for the distro-specific system stage, and final_stage() for the shared final stage, so divergent parts come first in the multi-stage build.

Also drop PYTHONDONTWRITEBYTECODE and PYTHONUNBUFFERED env vars, which were copied from another image and are not needed here.

ubuntu() and fedora() duplicated the entire final stage verbatim.
Extract ubuntu_system_stage() and fedora_system_stage() for the
distro-specific system stage, and final_stage() for the shared
final stage, so divergent parts come first in the multi-stage build.

Also drop PYTHONDONTWRITEBYTECODE and PYTHONUNBUFFERED env vars,
which were copied from another image and are not needed here.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Philippe Martin <phmartin@redhat.com>
@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@f475020). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #53   +/-   ##
=======================================
  Coverage        ?   84.84%           
=======================================
  Files           ?       16           
  Lines           ?     2217           
  Branches        ?        0           
=======================================
  Hits            ?     1881           
  Misses          ?      336           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@feloy feloy merged commit 8763dd1 into main Jun 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant