Compare commits
2 commits
9d67cd5a7c
...
2b07eab7e2
Author | SHA1 | Date | |
---|---|---|---|
|
2b07eab7e2 | ||
|
bf2fb48d2f |
2 changed files with 14 additions and 8 deletions
|
@ -29,6 +29,9 @@ Usage : check_container_upgrade [-d] [-E /path/to/engine] [container1,...]
|
||||||
-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)
|
||||||
|
--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
|
-d Debug mode
|
||||||
-X Enable bash tracing (=set -x)
|
-X Enable bash tracing (=set -x)
|
||||||
-h Show this message
|
-h Show this message
|
||||||
|
|
|
@ -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)
|
-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
|
||||||
|
@ -344,6 +343,10 @@ 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
|
||||||
|
|
Loading…
Reference in a new issue