-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(docker-image): ensure base & cache dir at build time #32594
fix(docker-image): ensure base & cache dir at build time #32594
Conversation
Co-authored-by: Michael Kriese <[email protected]>
🎉 This PR is included in version 39.20.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Just in case someone else hits this issue, it appears this change broke Renovate running as a pod within my cluster with the following error:
The only change was me upgrading from I believe the issue might be caused by me configuring a security context for the pod with user Strange that it was working correctly before though... |
you should read major update release notes |
I only posted it here in case someone else stumbled upon it, it wasn't meant as a critique or a bug report in and of itself, but since you've taken it upon yourself to educate me, could you kindly point me to the major update release note that mentions this breaking change? I've been using and upgrading Renovate from 37.* up to 39.20.5, and everything was working perfectly fine up until the 39.20.3. |
This changes breaks my renovate run, but for different but similar reasons. The error message is also: We are running renovate in a Azure devops agent. We have a scheduled agent job. The yml pipeline looks like this:
The first thing that might strike your attention is The "user magic" changes the active user of the container to the user of the agent. Therefore it is not ubuntu ( I have found no good solution to this problem. I will probably no longer use container resources but run the container myself. Downside: Manual |
please open new discussions to resolve your issues |
Changes
Create the default base and cache directories at docker image build time.
This will allow bind mounting cache assets without breaking the expected Renovate directory permissions at runtime.
This assumes that the ubuntu user is part of the root group, which is currently the case.
Context
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: