docker
docker copied to clipboard
Update init checks to be less restrictive
As of https://github.com/librenms/docker/pull/283 restrictive check, Docker images after 22.6.0 are not working properly for us.
We are running LibreNMS in Kubernetes, where we have the config.php mounted as ConfigMap (read-only for the file system), and also Redis has disabled FLUSHDB as a safety measure.
Changes applied in here:
- Ignore errors if cannot clean
config.dfolder initially. - Create new
config.dfiles only if folder is writable. - Update
chownfolders only if are writtable. - Ignore if
cache:clearfails. (Redis)
Question, how do you clear possibly incompatible cached data from redis?
I haven't had the "need", but from the current test 22.6 to 23.4 I didn't find any "incompatible issues". @murrant Would it help to show a warning message but continue running the software?
@crazy-max can you review changes again and validate?