mirror of
https://github.com/mag37/dockcheck.git
synced 2026-03-08 01:42:44 +01:00
versionbump
This commit is contained in:
parent
fd1769c30f
commit
c57923f152
2 changed files with 7 additions and 10 deletions
|
|
@ -21,6 +21,7 @@
|
||||||
___
|
___
|
||||||
## :bell: Changelog
|
## :bell: Changelog
|
||||||
|
|
||||||
|
- **v0.5.8.0**: Added version checks to all templates and a notification if a new template is released.
|
||||||
- **v0.5.7.0**: Rewritten templates - now with a function to notify when there's a new Dockcheck release.
|
- **v0.5.7.0**: Rewritten templates - now with a function to notify when there's a new Dockcheck release.
|
||||||
- Manually migrate your current `notify.sh` settings to a new template for new functionality.
|
- Manually migrate your current `notify.sh` settings to a new template for new functionality.
|
||||||
- **v0.5.6.1**: Async xargs hotfix - due to errors `failed to request manifest head ... context canceled`
|
- **v0.5.6.1**: Async xargs hotfix - due to errors `failed to request manifest head ... context canceled`
|
||||||
|
|
@ -29,9 +30,6 @@ ___
|
||||||
- To disable xargs `-P` flag (max processes) all together, set `MaxAsync` to 0.
|
- To disable xargs `-P` flag (max processes) all together, set `MaxAsync` to 0.
|
||||||
- **v0.5.6.0**: Heavily improved performance due to async checking for updates.
|
- **v0.5.6.0**: Heavily improved performance due to async checking for updates.
|
||||||
- **v0.5.5.0**: osx and bsd compatibility changes + rewrite of dependency installer
|
- **v0.5.5.0**: osx and bsd compatibility changes + rewrite of dependency installer
|
||||||
- **v0.5.4.0**: Added support for a Prometheus+node_exporter metric collection through a file collector.
|
|
||||||
- **v0.5.3.0**: Local image check changed (use imageId instead of name) and Gotify-template fixed (whale icon removed).
|
|
||||||
- **v0.5.2.1**: Rewrite of dependency downloads, jq can be installed with package manager or static binary.
|
|
||||||
___
|
___
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -113,7 +111,7 @@ Add preferred `notify.sh`-template to the same directory - this will not be touc
|
||||||
## :loudspeaker: Notifications
|
## :loudspeaker: Notifications
|
||||||
Trigger with the `-i` flag.
|
Trigger with the `-i` flag.
|
||||||
Run it scheduled with `-ni` to only get notified when there's updates available!
|
Run it scheduled with `-ni` to only get notified when there's updates available!
|
||||||
Will also send a notification when `dockcheck.sh` itself has an update.
|
Will also send a notification when `dockcheck.sh` itself has an update.
|
||||||
|
|
||||||
Use a `notify_X.sh` template file from the **notify_templates** directory, copy it to `notify.sh` alongside the script, modify it to your needs! (notify.sh is added to .gitignore)
|
Use a `notify_X.sh` template file from the **notify_templates** directory, copy it to `notify.sh` alongside the script, modify it to your needs! (notify.sh is added to .gitignore)
|
||||||
**Current templates:**
|
**Current templates:**
|
||||||
|
|
@ -147,7 +145,7 @@ nginx -> https://github.com/docker-library/official-images/blob/master/library
|
||||||
The `urls.list` file is just an example and I'd gladly see that people contribute back when they add their preferred URLs to their lists.
|
The `urls.list` file is just an example and I'd gladly see that people contribute back when they add their preferred URLs to their lists.
|
||||||
|
|
||||||
## :fast_forward: Asyncronous update checks with **xargs**; `-x N` option. (default=1)
|
## :fast_forward: Asyncronous update checks with **xargs**; `-x N` option. (default=1)
|
||||||
Pass `-x N` where N is number of subprocesses allowed, experiment in your environment to find a suitable max!
|
Pass `-x N` where N is number of subprocesses allowed, experiment in your environment to find a suitable max!
|
||||||
Change the default value by editing the `MaxAsync=N` variable in `dockcheck.sh`. To disable the subprocess function set `MaxAsync=0`.
|
Change the default value by editing the `MaxAsync=N` variable in `dockcheck.sh`. To disable the subprocess function set `MaxAsync=0`.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
VERSION="v0.5.7.0"
|
VERSION="v0.5.8.0"
|
||||||
### ChangeNotes: Rewritten templates - now with a function to notify when theres a new Dockcheck release.
|
### ChangeNotes: Added version checks to all templates and a notification if a new template is released.
|
||||||
Github="https://github.com/mag37/dockcheck"
|
Github="https://github.com/mag37/dockcheck"
|
||||||
RawUrl="https://raw.githubusercontent.com/mag37/dockcheck/main/dockcheck.sh"
|
RawUrl="https://raw.githubusercontent.com/mag37/dockcheck/main/dockcheck.sh"
|
||||||
|
|
||||||
|
|
@ -292,7 +292,7 @@ fi
|
||||||
check_image() {
|
check_image() {
|
||||||
i="$1"
|
i="$1"
|
||||||
local Excludes=($Excludes_string)
|
local Excludes=($Excludes_string)
|
||||||
for e in "${Excludes[@]}" ; do
|
for e in "${Excludes[@]}" ; do
|
||||||
if [[ "$i" == "$e" ]]; then
|
if [[ "$i" == "$e" ]]; then
|
||||||
echo Skip $i
|
echo Skip $i
|
||||||
return
|
return
|
||||||
|
|
@ -326,7 +326,7 @@ export -f check_image datecheck
|
||||||
export Excludes_string="${Excludes[@]}" # Can only export scalar variables
|
export Excludes_string="${Excludes[@]}" # Can only export scalar variables
|
||||||
export t_out regbin RepoUrl DaysOld
|
export t_out regbin RepoUrl DaysOld
|
||||||
|
|
||||||
# Check for POSIX xargs with -P option, fallback without async
|
# Check for POSIX xargs with -P option, fallback without async
|
||||||
if (echo "test" | xargs -P 2 >/dev/null 2>&1) && [[ "$MaxAsync" != 0 ]]; then
|
if (echo "test" | xargs -P 2 >/dev/null 2>&1) && [[ "$MaxAsync" != 0 ]]; then
|
||||||
XargsAsync="-P $MaxAsync"
|
XargsAsync="-P $MaxAsync"
|
||||||
else
|
else
|
||||||
|
|
@ -457,4 +457,3 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue