Compare commits

...

2 commits

2 changed files with 14 additions and 8 deletions

View file

@ -25,13 +25,16 @@ service nagios-nrpe-server reload
```
Usage : check_container_upgrade [-d] [-E /path/to/engine] [container1,...]
-E [path] Force a specific engine (possible values: auto docker podman, default: auto)
-x [container] Exclude specified container (could be repeat)
-M [integer] Max number of container checks to run in parallel (default: 4, 0=no limit)
-f [docker-compose.yml] To check upgrade on docker compose project, specified the path of the docker-compose.yml file
-d Debug mode
-X Enable bash tracing (=set -x)
-h Show this message
-E [path] Force a specific engine (possible values: auto docker podman, default: auto)
-x [container] Exclude specified container (could be repeat)
-M [integer] Max number of container checks to run in parallel (default: 4, 0=no limit)
-f [docker-compose.yml] To check upgrade on docker compose project, specified the path of the docker-compose.yml file
-b|--build|--rebuild Trigger container build if upgrade detected (only possible if a docker compose file if provided)
--rebuild-lock Specify rebuild lock file path (default: /var/tmp/check_container_upgrade.lock)
--rebuild-log Specify rebuild log file path (default: /var/tmp/check_container_upgrade.log)
-d Debug mode
-X Enable bash tracing (=set -x)
-h Show this message
```
## Copyright

View file

@ -60,7 +60,6 @@ Usage : $(basename $0) [-d] [-E /path/to/engine] [container1,...]
-M [integer] Max number of container checks to run in parallel (default: $MAX_PARALLEL_CHECKS, 0=no limit)
-f [docker-compose.yml] To check upgrade on docker compose project, specified the path of the docker-compose.yml file
-b|--build|--rebuild Trigger container build if upgrade detected (only possible if a docker compose file if provided)
/!\\ WARNING /!\\ Beta feature, not really tested yet!
--rebuild-lock Specify rebuild lock file path (default: ${REBUILD_LOCK_FILE})
--rebuild-log Specify rebuild log file path (default: ${REBUILD_LOG_FILE})
-d Debug mode
@ -344,6 +343,10 @@ then
echo "You could recreate and restart them using the following command:"
echo
echo " $COMPOSE_BIN -f $DOCKERCOMPOSE_FILE up -d --no-deps ${UPGRADABLE_CONTAINERS[@]}"
echo
echo "Note:"
echo " If new updates was published since rebuild was triggered, remove the"
echo " '$REBUILD_LOCK_FILE' file and recheck it to trigger a new build."
fi
echo
else