Compare commits

..

No commits in common. "2b07eab7e2a7b97d7ace904dbea8f314b20e6bf5" and "9d67cd5a7c2c7e0fdc84cc2379d47e4cd74a2329" have entirely different histories.

2 changed files with 8 additions and 14 deletions

View file

@ -25,16 +25,13 @@ service nagios-nrpe-server reload
``` ```
Usage : check_container_upgrade [-d] [-E /path/to/engine] [container1,...] Usage : check_container_upgrade [-d] [-E /path/to/engine] [container1,...]
-E [path] Force a specific engine (possible values: auto docker podman, default: auto) -E [path] Force a specific engine (possible values: auto docker podman, default: auto)
-x [container] Exclude specified container (could be repeat) -x [container] Exclude specified container (could be repeat)
-M [integer] Max number of container checks to run in parallel (default: 4, 0=no limit) -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 -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) -d Debug mode
--rebuild-lock Specify rebuild lock file path (default: /var/tmp/check_container_upgrade.lock) -X Enable bash tracing (=set -x)
--rebuild-log Specify rebuild log file path (default: /var/tmp/check_container_upgrade.log) -h Show this message
-d Debug mode
-X Enable bash tracing (=set -x)
-h Show this message
``` ```
## Copyright ## Copyright

View file

@ -60,6 +60,7 @@ 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) -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 -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) -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-lock Specify rebuild lock file path (default: ${REBUILD_LOCK_FILE})
--rebuild-log Specify rebuild log file path (default: ${REBUILD_LOG_FILE}) --rebuild-log Specify rebuild log file path (default: ${REBUILD_LOG_FILE})
-d Debug mode -d Debug mode
@ -343,10 +344,6 @@ then
echo "You could recreate and restart them using the following command:" echo "You could recreate and restart them using the following command:"
echo echo
echo " $COMPOSE_BIN -f $DOCKERCOMPOSE_FILE up -d --no-deps ${UPGRADABLE_CONTAINERS[@]}" 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 fi
echo echo
else else