mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-22 19:24:16 +01:00
Clean&refactor (#148)
* cleaning spaces and consistent formatting * removed more subshells * progress bar cleanup * moved uservars to a .config file * rewritten options from yes/no to true/false * initialized default variables * added bash options: -euo pipefail, shopt -s nullglob and failglob * quoting variables, cleaning syntax, logic and order * unquoted some variables due to breakage * added exit on pull-fail * added new sponsor * added Slack template
This commit is contained in:
parent
b5c03a2caa
commit
8dd1bba75b
5 changed files with 289 additions and 148 deletions
20
default.config
Normal file
20
default.config
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
### Custom user variables
|
||||
# Copy this file to "dockcheck.config" to make it active
|
||||
# Can be placed in ~/.config/ or alongside dockcheck.sh
|
||||
#
|
||||
# Uncomment and set your preferred configuration variables here
|
||||
# This will not be replaced on updates
|
||||
|
||||
#Timeout=10 # Set a timeout (in seconds) per container for registry checkups.
|
||||
#MaxAsync=1 # Set max asynchronous subprocesses, 1 default, 0 to disable.
|
||||
#BarWidth=50 # The character width of the progress bar
|
||||
#AutoMode=true # Automatic updates, without interaction.
|
||||
#DontUpdate=true # No updates; only checking availability without interaction.
|
||||
#AutoPrune=false # Auto-Prune dangling images after update.
|
||||
#Notify=false # Inform - send a preconfigured notification.
|
||||
#Exclude="one,two" # Exclude containers, separated by comma.
|
||||
#DaysOld="5" # Only update to new images that are N+ days old. Lists too recent with +prefix and age. 2xSlower.
|
||||
#Stopped="-a" # Include stopped containers in the check. (Logic: docker ps -a).
|
||||
#OnlyLabel=false # Only update if label is set. See readme.
|
||||
#ForceRestartStacks=false # Force stack restart after update. Caution.
|
||||
#DRunUp=false # Allow updating images for docker run, wont update the container.
|
||||
Loading…
Add table
Add a link
Reference in a new issue