webgui icon indicating copy to clipboard operation
webgui copied to clipboard

Indicate updated template version

Open realies opened this issue 7 years ago • 8 comments

Updating Docker containers might make them break if using an obsolete template. Perhaps indicate somewhere whenever a used template has a newer version?

realies avatar Mar 22 '18 23:03 realies

When dockerMan checks for updates, it also updates certain tags in the template if the author allows this. OTOH, description / overview, Support, Project, and Config entries (And depending upon the container/template, the update of the template can be troublesome at times)

Squidly271 avatar Mar 23 '18 15:03 Squidly271

Have lost a Postgres persistent data because the template was obsolete.

realies avatar Mar 23 '18 17:03 realies

Perhaps indicate somewhere whenever a used template has a newer version?

Please consider generating a PR to do this ;)

limetech avatar Mar 23 '18 21:03 limetech

Should this be part of the webGui or the community applications plugin?

realies avatar Mar 23 '18 23:03 realies

Of the three Postgres containers available in CA, only the one in jj9987's repo supports updating of the template via dockerMan (It's the only one that has TemplateURL)

And, a PR for this is against dockerMan, not CA

Squidly271 avatar Mar 24 '18 13:03 Squidly271

This is the exact template in use. It seems the official Postgres image has changed storage locations, which has been reflected here https://github.com/juusujanar/unraid-templates/commit/6d6c1f1a66ed719d05f26385829082111e18d20e (line 57), although upon updating the container that did not change, causing the loss of data. The result was an empty data folder on the host directory due to permission issues with the enclosed files.

realies avatar Mar 24 '18 22:03 realies

Any PR that would have dockerMan automatically update the target against all config elements would be a very bad idea, as it's very common practice for users to substitute the targets the template maintainer dictates. A notification that the template has been updated though might also be problematic because templates change all the time, usually for minor things such as config description changes, required / not required, template description, etc.

How common is this issue?

Squidly271 avatar Mar 28 '18 13:03 Squidly271

Not aware how common, but losing all database data was not pleasant, hence looking for ways to prevent this from happening.

realies avatar Mar 28 '18 14:03 realies