Repository navigation
feat(CLOUDDST-32565):Upgrade Dockerfiles to UBI9 - #1336
Merged
Merged
Conversation
This commit upgrades the UBI images in the IIB's Dockerfiles from UBI8 to UBI9, which is the currently latest supported one. Refers to CLOUDDST-32565 Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
From `docker-compose` build: ``` 1.544 Error: 1.544 Problem: problem with installed package curl-minimal-7.76.1-40.el9.x86_64 1.544 - package curl-minimal-7.76.1-40.el9.x86_64 from @System conflicts with curl provided by curl-7.76.1-40.el9.x86_64 from ubi-9-baseos-rpms 1.544 - package curl-minimal-7.76.1-40.el9.x86_64 from ubi-9-baseos-rpms conflicts with curl provided by curl-7.76.1-40.el9.x86_64 from ubi-9-baseos-rpms 1.544 - conflicting requests 1.544 (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages) ------ ``` We may stick with the installed version `curl-minimal` from UBI9 hence removing `curl` from installer Refers to CLOUDDST-32565 Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
This commit changes the `update-alternatives` command to install the aliases for `python3` and `pip3` as those aren't present by default on UBI9, raising the error below: ``` => ERROR [iib-api 4/9] RUN update-alternatives --set python3 $(which python3.12) 0.2s ------ > [iib-api 4/9] RUN update-alternatives --set python3 $(which python3.12): 0.148 cannot access /var/lib/alternatives/python3: No such file or directory ``` Refers to CLOUDDST-32565 Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
Remove no longer necessary pip upgrade after the installation from the package manager as we're now on UBI9 Refers to CLOUDDST-32565 Signed-off-by: Jonathan Gangi <jgangi@redhat.com>
chandwanitulsi
approved these changes
Jun 2, 2026
chandwanitulsi
left a comment
Contributor
There was a problem hiding this comment.
LGTM!
Why do we have changes detected in konflux-ca.crt?
Contributor
Author
Probably due to my first attempt to open this PR which I accidentally marked |
Collaborator
|
/agentic_review |
Code Review by Qodo
1. Implicit curl dependency
|
yashvardhannanavati
approved these changes
Jun 2, 2026
MichalZelenak
approved these changes
Jun 4, 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.
Upgrade Dockerfiles to UBI9
This PR aims to upgrade the existing Dockerfiles for IIB's API and worker to the currently latest version of UBI which is the UBI9.
It also fix some issues in the existing Dockerfiles in order to make IIB work in the new UBI version.