mirror of
https://github.com/mag37/dockcheck.git
synced 2026-04-17 09:57:49 +00:00
Update rework (#178)
* first iteration rewriting the update logic * formatting fixes * Added an option to have compose up only target the specific container. Used with either -F flag, config variable or label. * Skipping update check on non-compose containers unless option is set * Versionbump Added new info and upped the version number.
This commit is contained in:
21
README.md
21
README.md
@@ -20,10 +20,15 @@
|
||||
___
|
||||
## :bell: Changelog
|
||||
|
||||
- **v0.6.4**: Restructured the update process - first pulls all updates, then recreates all containers.
|
||||
- Added logic to skip update check on non-compose containers (unless `-r` option).
|
||||
- Added option `-F` to revert to `compose up -d <ContainerName>` targeting specific container and not the stack.
|
||||
- Also added corresponding label and config-option.
|
||||
- Added markdown formatting to `notify_ntfy-sh.sh` template.
|
||||
- **v0.6.3**: Some fixes and changes:
|
||||
- Stops when a container recreation (compose up -d) fails, also `up`s the whole stack now.
|
||||
- `-M`, Markdown format url-releasenotes in notification (requires template rework, look at gotify!)
|
||||
- Added [addons/DSM/README.md](./addons/DSM/README.md) added for more info Synology DSM info.
|
||||
- Added [addons/DSM/README.md](./addons/DSM/README.md) for more info Synology DSM info.
|
||||
- Permission checks - graceful exit if no docker permissions + checking if root for pkg-manager.
|
||||
- **v0.6.2**: Style and colour changes, prometheus hotfix, new options:
|
||||
- `-u`, Allow auto self update of dockcheck.sh
|
||||
@@ -33,11 +38,6 @@ ___
|
||||
- xargs/pipefail, removed `-set -e` bash option for now.
|
||||
- unbound variables fixed (hopefully)
|
||||
- dependency installer from pkgmanager rewritten
|
||||
- **v0.6.0**: Refactored a lot of code, cleaner logic and syntax, safer variables.
|
||||
- Safer bash options with `set -euo pipefail`, `shopt -s nullglob` and `failglob`.
|
||||
- Added a `default.conf` for user settings - persistent through updates.
|
||||
- Added `notify_slack.sh` template for slack curl api.
|
||||
|
||||
___
|
||||
|
||||
|
||||
@@ -54,7 +54,8 @@ Options:
|
||||
-c D Exports metrics as prom file for the prometheus node_exporter. Provide the collector textfile directory.
|
||||
-d N Only update to new images that are N+ days old. Lists too recent with +prefix and age. 2xSlower.
|
||||
-e X Exclude containers, separated by comma.
|
||||
-f Force stack restart after update. Caution: restarts once for every updated container within stack.
|
||||
-f Force stop+start stack after update. Caution: restarts once for every updated container within stack.
|
||||
-F Only compose up the specific container, not the whole compose stack (useful for master-compose structure).
|
||||
-h Print this Help.
|
||||
-i Inform - send a preconfigured notification.
|
||||
-I Prints custom releasenote urls alongside each container with updates (requires urls.list).
|
||||
@@ -204,11 +205,13 @@ See [discussion here](https://github.com/mag37/dockcheck/discussions/145).
|
||||
Optionally add labels to compose-files. Currently these are the usable labels:
|
||||
```
|
||||
labels:
|
||||
mag37.dockcheck.restart-stack: true
|
||||
mag37.dockcheck.update: true
|
||||
mag37.dockcheck.only-specific-container: true
|
||||
mag37.dockcheck.restart-stack: true
|
||||
```
|
||||
- `mag37.dockcheck.restart-stack: true` works instead of the `-f` option, forcing stop+restart on the whole compose-stack (Caution: Will restart on every updated container within stack).
|
||||
- `mag37.dockcheck.update: true` will when used with the `-l` option only update containers with this label and skip the rest. Will still list updates as usual.
|
||||
- `mag37.dockcheck.only-specific-container: true` works instead of the `-F` option, specifying the updated container when doing compose up, like `docker compose up -d homer`.
|
||||
- `mag37.dockcheck.restart-stack: true` works instead of the `-f` option, forcing stop+restart on the whole compose-stack (Caution: Will restart on every updated container within stack).
|
||||
|
||||
## :roller_coaster: Workaround for non **amd64** / **arm64**
|
||||
`regctl` provides binaries for amd64/arm64, to use on other architecture you could try this workaround.
|
||||
|
||||
Reference in New Issue
Block a user