RemiRigal / Plex-Auto-Languages

Automated language selection for Plex TV Shows !
MIT License
444 stars 17 forks source link

Running in kubernetes, does not recognize that runs in a container env resulting in wrong data directory #82

Closed stavros-k closed 1 year ago

stavros-k commented 1 year ago

Hello, running in Kuberenetes with containerd the below function does not recognize that is_docker. Resulting in a different data directory.

https://github.com/RemiRigal/Plex-Auto-Languages/blob/1d3cd66620e40dd7fe5074439275e81ec792fae6/plex_auto_languages/utils/configuration.py#L37-L58

But because the Helm Chart I'm creating will run on different systems I can't know before hand it the runtime will be docker (so it will be recognized) or other runtimes. Can we have an env or a --flag to override this and set a data dir or at least the app think that is running in a container?

Thanks