Conversation
It should not be setting permissions on data that lives in the image. Fixes rogerfar#716
|
Is this right though? /app is an internal path where the .NET application lives. It should set the owner so that it's able to read from /data. |
/app is in the Docker image. My system is slowly changing the ownership of the files from root:root to abc:abc at a rate of about one file every 10-20 seconds as it alters the overlays. |
|
I'm going to close this as I don't think this is correct. The App folder should have that permission. |
|
You're right about the need for it. And the slowdown was a problem with the overlayfs when hosting the apps/docker on a spinning rust ZFS volume. Somehow, each file permission change, on the individual level, took several seconds before moving on to the next. |
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
The more I think about it, I think it makes sense. Why would RDT be wanting to changing all the permissions of existing files? /ask "Does this make sense"? |
|
@kode54 Why does it matter that it re-set the permission on the /app folder? I was thinking it's a problem that it's setting all permissions on the /data folder? |
|
rdt-client/root/etc/s6-overlay/s6-rc.d/svc-rdt-client/run Lines 10 to 11 in 772816c Does the |
|
I have some thoughts as to why this is happening, I've shared them here: #716 (comment) I'm not sure if the solution I proposed in that comment is ideal, but I've noted a much quicker startup time on my end, along with lower CPU usage and other stats as a result. |
|
@mentalblank I agree with your statement, but this PR removes the /app part and leave the /data intact. Wouldn't it be opposite? |
User description
It should not be setting permissions on data that lives in the image.
Fixes #716
PR Type
Bug fix
Description
Restricts permissions setting to
/datadirectory onlyPrevents unnecessary chown on
/appduring container startupAddresses Docker container startup hang issue
Changes walkthrough 📝
run
Restrict chown operation to /data directory onlyroot/etc/s6-overlay/s6-rc.d/init-rdt-client/run
/appfrom the recursive chown command/datahas its ownership set toabc:abc