ROX-33564: Add gzip, less, and tar packages to ubi-micro images#19985
ROX-33564: Add gzip, less, and tar packages to ubi-micro images#19985
Conversation
These common Unix utilities are useful for debugging, log inspection, and file operations within containers. Adding them to all ubi-micro-based images (main, roxctl, scanner, operator) provides consistent tooling across the platform. Changes: - Updated rpms.in.yaml with gzip, less, tar - Regenerated rpms.lock.yaml for all architectures - Updated all konflux.Dockerfiles to install packages - Updated all regular Dockerfiles to install packages Code partially generated with AI assistance. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
Skipping CI for Draft Pull Request. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #19985 +/- ##
=======================================
Coverage 49.56% 49.57%
=======================================
Files 2764 2764
Lines 208442 208442
=======================================
+ Hits 103323 103328 +5
+ Misses 97464 97460 -4
+ Partials 7655 7654 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🚀 Build Images ReadyImages are ready for commit a778eb6. To use with deploy scripts: export MAIN_IMAGE_TAG=4.11.x-654-ga778eb6bc8 |
|
/konflux-retest roxctl-on-push |
|
/konflux-retest operator-bundle-on-push |
|
/konflux-retest scanner-v4-db-on-push |
|
/konflux-retest roxctl-on-push |
|
/konflux-retest scanner-v4-db-on-push |
|
/konflux-retest operator-bundle-on-push |
|
/konflux-retest central-db-on-push |
msugakov
left a comment
There was a problem hiding this comment.
Please make sure Konflux CI succeeds. Conforma is optional, it does not have to suceed.
|
/konflux-retest create-custom-snapshot |
|
/retest |
Migrates scanner, scanner-db, and vulnerabilities images from ubi9-minimal to ubi9-micro base, following established patterns from stackrox/stackrox and stackrox/collector repositories. Changes: - Scanner images: Multi-stage build with package_installer for runtime deps - Scanner-DB images: Complex migration with PostgreSQL via chroot user/locale setup - Vulnerabilities image: Simple base image change (minimal deps) - Tekton configs: Added RPM prefetch + ACTIVATION_KEY for hermetic builds - rpms.in.yaml: Scanner packages (excludes coreutils - ubi9-micro has coreutils-single) - rpms.lock.yaml: Generated lockfile for all architectures Benefits: - ~30-35% image size reduction (ubi9-micro ~28MB vs ubi9-minimal ~92MB) - Improved security - package managers removed from runtime - Reduced CVE exposure surface - Alignment with organization-wide ubi9-micro standardization Technical details: - Scanner keeps rpm package (required for image scanning functionality) - PostgreSQL user created as UID/GID 70 via chroot - Locale set to en_US.UTF-8 via chroot - Konflux builds use SHA256-pinned base images - All scripts require bash (not sh) Reference PRs: - stackrox/stackrox#17431 (scanner-db migration) - stackrox/stackrox#17430 (scanner migration) - stackrox/collector#3021 (collector migration pattern) - stackrox/stackrox#19653 (main image migration) - stackrox/stackrox#19985 (debugging utilities) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
@janisz: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/retest |
|
Tested |
Signed-off-by: Tomasz Janiszewski <tomek@redhat.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
These common Unix utilities are useful for debugging, log inspection, and file operations within containers. Adding them to all ubi-micro-based images (main, roxctl, scanner, operator) provides consistent tooling across the platform.
User-facing documentation
Testing and quality
Automated testing
How I validated my change