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

[Bug]: Development container image build failure due to missing oracle instant client package #1104

Open
4 tasks done
gchiappara opened this issue Mar 9, 2025 · 1 comment · May be fixed by #1106
Open
4 tasks done

Comments

@gchiappara
Copy link

gchiappara commented Mar 9, 2025

Oracle-ads version used

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of oracle-ads.

  • I have confirmed this bug exists on the main branch of oracle-ads.

  • I agree to follow Code of Conduct.

Description

When attempting to build the development container image using the ads opctl build-image command, the build fails with the error message "No package oracle-instantclient19.13-basic available.".

Workaround:
I temporarily resolved this by manually editing the file ads/opctl/docker/Dockerfile.job replacing update=13 with update=10 on line 13.

How to Reproduce

ads opctl build-image job-local

What was Observed

No package oracle-instantclient19.13-basic available.

What was Expected

Docker image successfully built.

Version

2.13.0

@gchiappara
Copy link
Author

The issue seems to be with how the architecture is being detected. For Apple M2, it should use the dockerfile Dockefile.job.arm instead of Docker.job.

I found that the error comes from the regex used in line 157 in ads/opctl/utils.py. In my case, the manufacturer value is "Apple M2", but it doesn’t match the regex "apple m\d " due to the trailing space. After manually removing the space, it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant