Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update base image to UBI9 #39

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Gregory-Pereira
Copy link

cc @vishnoianil this should swap base image to ubi9

dolfim-ibm
dolfim-ibm previously approved these changes Feb 11, 2025
Signed-off-by: greg pereira <[email protected]>
@dolfim-ibm
Copy link
Contributor

I tried the build locally and the failure comes from packages not found in the ubi9 registry:

(app-root) dnf install  $(cat /tmp/os-packages.txt)
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:01:11 ago on Wed 12 Feb 2025 05:41:17 AM UTC.
No match for argument: tesseract
No match for argument: tesseract-langpack-eng
Package glib2-2.68.4-14.el9_4.1.aarch64 is already installed.
Package wget-1.21.1-8.el9_4.aarch64 is already installed.
Package git-2.43.5-2.el9_5.aarch64 is already installed.
Error: Unable to find a match: tesseract tesseract-langpack-eng

@dolfim-ibm
Copy link
Contributor

In the previous base image, tesseract is coming from the centos stream9 appstream repository.

@jrusz
Copy link

jrusz commented Feb 12, 2025

Hm, the issue is with subscription. UBI images have a limited subset of packages available without it. I tried running it locally with a subscription and after enabling the CRB repo I am able to install the packages necessary:

Dependencies resolved.
=================================================================================================================================================================================================================================================
 Package                                                     Architecture                                Version                                             Repository                                                                     Size
=================================================================================================================================================================================================================================================
Installing:
 tesseract-devel                                             x86_64                                      4.1.1-7.el9                                         codeready-builder-for-rhel-9-x86_64-rpms                                       62 k
Installing dependencies:
 giflib                                                      x86_64                                      5.2.1-9.el9                                         rhel-9-for-x86_64-appstream-rpms                                               51 k
 leptonica                                                   x86_64                                      1.80.0-4.el9.1                                      rhel-9-for-x86_64-appstream-rpms                                              1.1 M
 leptonica-devel                                             x86_64                                      1.80.0-4.el9.1                                      codeready-builder-for-rhel-9-x86_64-rpms                                      125 k
 tesseract                                                   x86_64                                      4.1.1-7.el9                                         rhel-9-for-x86_64-appstream-rpms                                              1.3 M
 tesseract-langpack-eng                                      noarch                                      4.1.0-3.el9                                         rhel-9-for-x86_64-appstream-rpms                                              1.7 M
 tesseract-tessdata-doc                                      noarch                                      4.1.0-3.el9                                         rhel-9-for-x86_64-appstream-rpms                                               15 k

Transaction Summary
=================================================================================================================================================================================================================================================
Install  7 Packages

Total download size: 4.4 M
Installed size: 11 M

I'm not sure how you can solve this here in the upstream though 😞

@tiran
Copy link

tiran commented Feb 12, 2025

I recommend to stick to CentOS 9 Stream as default for upstream and just replace dnf config-manager --enable crb with something that works for C9S and subscribed RHEL.

@Gregory-Pereira
Copy link
Author

This was to keep us in line with productization stuff downstream. For now were going in a different direction from this PR so I will convert it to draft.

@Gregory-Pereira Gregory-Pereira marked this pull request as draft February 12, 2025 17:45
Copy link

mergify bot commented Feb 13, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 Enforce conventional commit

This rule is failing.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

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.

5 participants