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

do not pull image from OCR #118

Open
dba2020 opened this issue Jul 19, 2024 · 4 comments
Open

do not pull image from OCR #118

dba2020 opened this issue Jul 19, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request sidb Single Instance Database

Comments

@dba2020
Copy link

dba2020 commented Jul 19, 2024

Hi Team, when I create database with below command, it will pull the Oracle image from container-registry.oracle.com
$kubectl apply -f singleinstancedatabase.yaml

If the Oracle image already exists locally(I have manually pulled it from OCR before), is it possible to use the local image directly without pulling it from container-registry.oracle.com?

@yunus-qureshi
Copy link
Member

Which image are you pulling from container-registry.oracle.com?

@dba2020
Copy link
Author

dba2020 commented Jul 22, 2024

Hi Yunus,
The image I'm currently pulling/testing is 19.3.0.0.
But it is not limited to version 19.3, and other versions image will be tested in the future. I want to know if there is such a method, instead of pulling the image from OCR during running command "kubectl apply", but using the existing image locally(manually pulled it from OCR before).

For helm env, it is possible to set "imagePullPolicy=IfNotPresent" to use local image instead pulling from OCR, so I am thinking if operator can do this.
helm code: https://github.com/oracle/docker-images/blob/main/OracleDatabase/SingleInstance/helm-charts/oracle-db/values.yaml#L49

Thanks/James.

@IshaanDesai45
Copy link
Member

@dba2020 we don't support imagePullPolicy right now but you can leverage the default imagePullPolicy to achieve the above requirement

  1. If the image tag is :latest, the imagePullPolicy will be automatically set to Always.
  2. If the image tag isn’t :latest, the imagePullPolicy will be automatically set to IfNotPresent.
  3. And if you don’t set any image tag, the imagePullPolicy will be automatically set to latest image and Always value.

@IshaanDesai45
Copy link
Member

Marking it as an enhancement for the next release

@IshaanDesai45 IshaanDesai45 added enhancement New feature or request sidb Single Instance Database labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sidb Single Instance Database
Projects
None yet
Development

No branches or pull requests

3 participants