Bleala / Vdirsyncer-DOCKERIZED

Vdirsyncer - sync calendars and addressbooks between servers and the local filesystem. DOCKERIZED!
31 stars 6 forks source link

usage of non-root user for container and generated outputs #4

Closed mr-suw closed 2 years ago

mr-suw commented 2 years ago

Hi,

The application inside container seems to run as root user. All generated output files (e.g., ics calendar files) are owned by the user root. Would it be possible to change to a non-root user?

Best practice is to define the user and group as an environment variable for the Vdirsyncer container (as far I know).

Would be great to have this option, because another program cannot use the ics file because he is not root (and setting the file permission once does not help).

Thanks for dockerizing it.

Bleala commented 2 years ago

Hello there!

Yes it‘s running as root, because i did not care about this to be honest, did not need it by myself, that the files are accessible to other users, because i use a docker volume.

But i‘ll add an option, that you can set the user through an environment variable 😉

Hope i am able to do this during this weekend!

Greetings

Bleala commented 2 years ago

Hello again!

Your problem should be solved with the following Release 😄

I'll close this issue, hope everything is fine for you now!

Have a nice weekend!