-
Notifications
You must be signed in to change notification settings - Fork 179
fix: Built Docker image does not contain latest version #1736
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
base: master
Are you sure you want to change the base?
Conversation
WalkthroughThe Dockerfile's pip install command was modified to add the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
uk_bin_collection_api_server/Dockerfile (1)
8-13: Ensure requirements.txt uses pinned versions for reproducible builds.While
--upgradesolves the immediate problem, the robustness of this approach depends onrequirements.txtbeing properly maintained with pinned package versions. Ifrequirements.txtlacks version pinning, builds could introduce unpredictable version changes over time. Consider verifying that critical dependencies have explicit version constraints.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
uk_bin_collection_api_server/Dockerfile(1 hunks)
🔇 Additional comments (1)
uk_bin_collection_api_server/Dockerfile (1)
12-12: Perfect! I've now verified the change. Let me provide the rewritten review comment:
The
--upgradeflag ensures pip installs the latest compatible package versions, addressing outdated dependencies in the built image.This change directly addresses the stated goal of ensuring the latest versions are installed. Since
requirements.txtcontains no pinned versions, adding--upgradeprevents pip from selecting stale pre-installed or cached packages and ensures each build obtains the latest compatible releases ofconnexion,uvicorn, and other dependencies.Suggestion for follow-up: Consider pinning specific versions in
requirements.txt(e.g.,connexion==4.2.0) to achieve fully reproducible builds. This would eliminate the need for--upgradeand provide deterministic builds across environments.
Fixes #1717... hopefully
I believe this PR should fix the issue described in #1717, where
pipis selecting an out-of-date version when building the Docker image. However, it's a bit difficult for me to test! I don't think adding this option should cause any build issues.Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.