mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-16 08:21:36 +00:00
Add Docker update support via Watchtower integration (#1330)
* Add Docker update support via Watchtower integration Add web-based Docker container updates using Watchtower HTTP API. When configured with WATCHTOWER_API_URL and WATCHTOWER_API_TOKEN environment variables, administrators can trigger container updates from the Update Manager page. Features: - WatchtowerClient service for Watchtower HTTP API communication - Docker update progress page with animated Docker whale logo - Real-time step tracking: Trigger, Pull, Stop, Restart, Health Check, Verify - CSP-compatible progress bar using CSS classes - Translated UI strings via Stimulus values - Health endpoint polling to detect container restart - Watchtower setup documentation for Docker installations - WatchtowerClient made nullable for non-Docker installations - Unit tests for WatchtowerClient * Fixed translation message IDs * Switch Watchtower docs to maintained nicholas-fedor fork The original containrrr/watchtower is no longer maintained (last release Nov 2023). Point users to the drop-in compatible active fork and add an info note explaining why. No code changes — the HTTP API is identical, so WatchtowerClient works against either image. * Fixed exception when github is not reachable * Only show version string in health endpoint, when user has permissions * Do not expose watchtower API port in example docker-compose file * Show if updates, backup restore and backup download are allowed in update manager page * Report 'not authorized' for version in health endpoint if user lacks permission --------- Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
This commit is contained in:
parent
91bf8371ad
commit
d346708150
14 changed files with 1577 additions and 55 deletions
|
|
@ -17,7 +17,7 @@
|
|||
Consider yourself lucky. You found some rare error code. <br> You should maybe inform your administrator about it...
|
||||
{% endblock %}
|
||||
</h3>
|
||||
{% block further_actions %}<p class="help_text">You can try to <a href="javascript:history.back()">Go Back</a> or <a href="{{ path('homepage') }}">Visit the homepage</a>.</p>{% endblock %}
|
||||
{% block further_actions %}<p class="help_text">You can try to <a href="#" onclick="history.back();return false;">Go Back</a> or <a href="{{ path('homepage') }}">Visit the homepage</a>.</p>{% endblock %}
|
||||
{% block admin_contact %}<p class="help_text">If this error persists, please contact your
|
||||
{% if error_page_admin_email is not empty %}
|
||||
<a href="mailto:{{ error_page_admin_email }}">administrator.</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue