shared_with_container and files inside have user permissions instead of root#235
shared_with_container and files inside have user permissions instead of root#235klemen1999 wants to merge 4 commits into
shared_with_container and files inside have user permissions instead of root#235Conversation
|
Warning Review limit reached
More reviews will be available in 49 minutes and 44 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe PR extends ModelConverter's Docker setup by introducing shared directory initialization, container user identity mapping, and environment variable configuration. The launcher now calls ChangesShared Directory and Docker User Configuration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
modelconverter/utils/docker_utils.py (1)
26-27: ⚡ Quick winCentralize runtime directory suffixes to avoid cross-file drift.
"runtime-home"and"runtime-cache"are duplicated here and inmodelconverter/cli/utils.py(Line 75-76 there). Please define shared constants (e.g., inmodelconverter.utils.constants) and derive both host/container paths from them so these paths cannot silently diverge later.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@modelconverter/utils/docker_utils.py` around lines 26 - 27, The two hard-coded suffixes "runtime-home" and "runtime-cache" are duplicated as _CONTAINER_USER_HOME and _CONTAINER_USER_CACHE; create shared constants (e.g., RUNTIME_HOME_SUFFIX and RUNTIME_CACHE_SUFFIX) in a new or existing module modelconverter.utils.constants and replace the duplicated literals in modelconverter/utils/docker_utils.py (symbols _CONTAINER_USER_HOME, _CONTAINER_USER_CACHE) and in modelconverter/cli/utils.py with derived paths that concatenate the shared suffixes to the common base (host/container prefixes), and update imports in both files to pull the suffix constants from modelconverter.utils.constants so the suffixes stay centralized.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@modelconverter/utils/docker_utils.py`:
- Around line 26-27: The two hard-coded suffixes "runtime-home" and
"runtime-cache" are duplicated as _CONTAINER_USER_HOME and
_CONTAINER_USER_CACHE; create shared constants (e.g., RUNTIME_HOME_SUFFIX and
RUNTIME_CACHE_SUFFIX) in a new or existing module modelconverter.utils.constants
and replace the duplicated literals in modelconverter/utils/docker_utils.py
(symbols _CONTAINER_USER_HOME, _CONTAINER_USER_CACHE) and in
modelconverter/cli/utils.py with derived paths that concatenate the shared
suffixes to the common base (host/container prefixes), and update imports in
both files to pull the suffix constants from modelconverter.utils.constants so
the suffixes stay centralized.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: d9cc07ee-16c9-4b35-b70c-53d9de35bb3b
📒 Files selected for processing (4)
README.mdmodelconverter/__main__.pymodelconverter/cli/utils.pymodelconverter/utils/docker_utils.py
Purpose
shared_with_container/outputsfolder) are made with user permissions instead of rootshared_with_containeris now created automatically if it doesn't exist which solves the issue where previously this was created by docker and with root permissionsSpecification
None / not applicable
Dependencies & Potential Impact
None / not applicable
Deployment Plan
None / not applicable
Testing & Validation
None / not applicable
AI Usage
Assisted-by: AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]
Submitted code was reviewed by a human: YES/NO
The author is taking the responsibility for the contribution: YES/NO
Summary by CodeRabbit
Documentation
Chores