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 versions.sh to filter targets correctly for pre-releases #705

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

tianon
Copy link
Member

@tianon tianon commented Aug 1, 2024

This is relevant right now because 8.0.0-rc15 adds support for ubuntu 24.04 (noble), but 7.0 doesn't support it yet, so it's impossible to install the noble pre-release builds.

This fixes the calculation of which base image to use by cross-referencing this case. While doing so, I centralized more of the logic for when/where we need that backwards version so we don't have to do the same weird calculations in multiple places / languages (with a new dockerNeedsVersion field in versions.json).

With this change, I was able to run ./versions.sh and successfully build 8.0.0-rc15.

This is relevant right now because 8.0.0-rc15 adds support for ubuntu 24.04 (noble), but 7.0 doesn't support it yet, so it's impossible to install the `noble` pre-release builds.

This fixes the calculation of which base image to use by cross-referencing this case.  While doing so, I centralized more of the logic for when/where we need that backwards version so we don't have to do the same weird calculations in multiple places / languages (with a new `dockerNeedsVersion` field in `versions.json`).

With this change, I was able to run `./versions.sh` and successfully build 8.0.0-rc15.
@yosifkit yosifkit merged commit 3ad9e30 into docker-library:master Aug 1, 2024
14 checks passed
@yosifkit yosifkit deleted the versions-filter-targets branch August 1, 2024 17:55
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Aug 1, 2024
Changes:

- docker-library/mongo@9895a97: Update 8.0-rc to 8.0.0-rc15
- docker-library/mongo@3ad9e30: Merge pull request docker-library/mongo#705 from infosiftr/versions-filter-targets
- docker-library/mongo@bcb585e: Update `versions.sh` to filter targets correctly for pre-releases
- docker-library/mongo@290c08f: Add more base distribution mappings
@tianon
Copy link
Member Author

tianon commented Aug 8, 2024

😭 I'm both sad and happy about mongodb-js/mongosh#2094 (I've tested and was able to swap from the 7.0 to 8.0 APT repo and upgrade to noble successfully)

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.

2 participants