fix(Docker): docker build fails when base image has no klogd user#1205
Conversation
WalkthroughThe Dockerfile has been updated to replace a previous workaround for klogd user deletion with an explicit tmuser creation strategy. The new approach creates a tmuser group with GID 1000 and a tmuser with UID 100, ensuring UID 100 is available by removing any conflicting existing user. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (1)
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 |
Issue being fixed or feature implemented
Alpine base image does not have klogd user anymore, causing build to fail.
What was done?
Improved Dockerfile to delete user with uid 100 only if it exists.
How Has This Been Tested?
GHA https://github.com/dashpay/tenderdash/actions/runs/19336505278
Breaking Changes
None
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit