Skip to content

chore(init-container): fix init ubi container build issue#2631

Merged
Aryan-sharma11 merged 1 commit into
kubearmor:mainfrom
rksharma95:fix-init-ubi-build-issue
May 26, 2026
Merged

chore(init-container): fix init ubi container build issue#2631
Aryan-sharma11 merged 1 commit into
kubearmor:mainfrom
rksharma95:fix-init-ubi-build-issue

Conversation

@rksharma95

Copy link
Copy Markdown
Collaborator

Purpose of PR?:
ubi based init container image build was failing due to glibc-devel package dependency. this PR fixes the issue installing glibc-devel package before installing gcc.

6.252 Error: 
6.252  Problem 1: package gcc-14.3.1-4.4.el10.x86_64 from ubi-10-for-x86_64-appstream-rpms requires glibc-devel >= 2.2.90-12, but none of the providers can be installed
6.252   - conflicting requests
6.252   - nothing provides glibc = 2.39-124.el10_2 needed by glibc-devel-2.39-124.el10_2.x86_64 from ubi-10-for-x86_64-appstream-rpms
6.252  Problem 2: package gcc-c++-14.3.1-4.4.el10.x86_64 from ubi-10-for-x86_64-appstream-rpms requires gcc = 14.3.1-4.4.el10, but none of the providers can be installed
6.252   - package clang-21.1.8-1.el10.x86_64 from ubi-10-for-x86_64-appstream-rpms requires gcc-c++, but none of the providers can be installed
6.252   - package gcc-14.3.1-4.4.el10.x86_64 from ubi-10-for-x86_64-appstream-rpms requires glibc-devel >= 2.2.90-12, but none of the providers can be installed
6.252   - conflicting requests
6.252   - nothing provides glibc = 2.39-124.el10_2 needed by glibc-devel-2.39-124.el10_2.x86_64 from ubi-10-for-x86_64-appstream-rpms
6.252 (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
------
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
Dockerfile.init:33
--------------------
  32 |     
  33 | >>> RUN dnf -y update && \
  34 | >>>     dnf -y install --nodocs --setopt=install_weak_deps=0 --setopt=keepcache=0 shadow-utils git clang llvm make gcc libbpf tar gzip && \
  35 | >>>     dnf clean all
  36 |     
--------------------

Does this PR introduce a breaking change?

If the changes in this PR are manually verified, list down the scenarios covered::

Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Checklist:

  • Bug fix.
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Commit has unit tests
  • Commit has integration tests

@Aryan-sharma11 Aryan-sharma11 merged commit 1962084 into kubearmor:main May 26, 2026
6 of 11 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.

4 participants