-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add OCI-CLI Version Tag to Docker Images #2935
Comments
We specifically don't add a version tag to the image, because the latest CLI includes all the functionality of the previous builds and removes any functionality no longer supported by the CLI or API. If someone pulls by version, then that image is not going to be updated. So this creates a situation where users don't keep the image up-to-date and then start opening issues that the CLI doesn't support or even worse, the image has security issues. Unless you can provide a compelling reason for why versioned images are a good idea in this instance, I'm going to decline this request. |
Thank you for the clarification. I understand the concern about users running outdated versions and potential security risks. However, I’d like to provide a few reasons why having a versioned tag for the OCI-CLI Docker images could be beneficial:
Thanks again for your time and consideration! |
Can you provide more detail on why the date tag is not sufficient for this purpose? Tagging with the version means the CI has to do actual introspection, which is something I'm trying to avoid. |
We currently use the date tag and add comments to our deployments to keep track of the CLI version, but it would make much more sense for this to be natively included. Having the version tag directly on the image would remove the need for extra tracking on our end and make it easier to compare against documentation or debug issues. It’s not that the date tag doesn’t work, but adding a version tag would provide better traceability without requiring users to reverse look up a date or access the container just to query the version. As an alternative to introspecting the image, perhaps you could pull the latest version from the PyPI API and tag the image automatically. Would that be a feasible solution? |
It would be even better if the pipeline could query the most recent version of the package and use this value to install the exact version. This will prevent any misalignments between the tag and the CLI present in the Docker image. Additionally, this version could be used to detect if the version already exists, preventing redundant builds. https://github.com/oracle/docker-images/blob/main/OracleCloudInfrastructure/oci-cli/Dockerfile#L18
|
It'll be a while before I get a chance to look into this, but we welcome contributions. :) If you're willing and able to modify the GitHub Action that builds the image, I'd be happy to review it. |
Currently, the OCI-CLI Docker images are only tagged with latest or the build timestamp (e.g., 20250226). This makes it difficult to reference a specific CLI version reliably.
I would like to request an additional tag that corresponds to the CLI version itself. For example, the latest version (latest) currently refers to
3.51.9
, so an additional tag like3.51.9
would be helpful.This would allow users to pull a specific CLI version without relying on latest or tracking timestamps.
Expected Behavior:
• Each OCI-CLI Docker image should include a tag that corresponds to the CLI version (e.g., 3.51.9).
• This tag should be updated alongside latest with each new release.
Would it be possible to implement this in future builds?
The text was updated successfully, but these errors were encountered: