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

feat: Ensure micromamba meets minimum required version during build #533

Merged
merged 2 commits into from
Dec 27, 2024

Conversation

ChaonengQuan
Copy link
Contributor

@ChaonengQuan ChaonengQuan commented Dec 27, 2024

Issue #, if available:
App cannot start if there is corrupted condarc file
https://t.corp.amazon.com/P162071398/information

Motivation
Upgrade mircromamba version to include the open source fix in 1.5.11
Also jammy image tag is effective deprecated mamba-org/micromamba-docker#573 (comment)
source: mamba-org/mamba#3580

Description of changes:

  • Added logic to compare the current micromamba version with a configurable minimum required version (MIN_REQUIRED_MICROMAMBA_VERSION, default: 1.5.11).
  • Automatically upgrades micromamba if the installed version is strictly lower than the required version.
  • Prevents unnecessary updates or downgrades if the current version already satisfies the requirement.
  • Introduced ARG MIN_REQUIRED_MICROMAMBA_VERSION for flexibility during build time.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ChaonengQuan ChaonengQuan requested a review from TRNWWZ December 27, 2024 21:01
@ChaonengQuan ChaonengQuan removed the request for review from claytonparnell December 27, 2024 21:38
@aws-tianquaw aws-tianquaw merged commit 5846583 into aws:main Dec 27, 2024
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.

3 participants