ajouter --with-registry-auth à dk update
This commit is contained in:
parent
8af50f4b91
commit
bc7eebc487
10
dk
10
dk
|
@ -894,15 +894,14 @@ function default_docker_service() {
|
||||||
}
|
}
|
||||||
function docker_service() { default_docker_service "$@"; }
|
function docker_service() { default_docker_service "$@"; }
|
||||||
function auto_service() {
|
function auto_service() {
|
||||||
local -a replace_env_args env_args
|
|
||||||
local -a replace_deploy_args deploy_args
|
|
||||||
local project_name container_name
|
|
||||||
if [ -f docker-compose.yml -o -f docker-stack.yml ]; then
|
if [ -f docker-compose.yml -o -f docker-stack.yml ]; then
|
||||||
local command="$1"; shift
|
local command="$1"; shift
|
||||||
[ -n "$command" ] || {
|
[ -n "$command" ] || {
|
||||||
eerror "Vous devez spécifier la commande"
|
eerror "Vous devez spécifier la commande"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
local -a command_args
|
||||||
|
[ "$command" == update -a -n "$WITH_REGISTRY_AUTH" ] && command_args+=(--with-registry-auth)
|
||||||
case "$command" in
|
case "$command" in
|
||||||
ls) # ces commandes n'ont pas besoin du nom de service
|
ls) # ces commandes n'ont pas besoin du nom de service
|
||||||
docker_service "$command" "$@"
|
docker_service "$command" "$@"
|
||||||
|
@ -913,9 +912,12 @@ function auto_service() {
|
||||||
eerror "Vous devez spécifier le nom du service"
|
eerror "Vous devez spécifier le nom du service"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
local -a replace_env_args env_args
|
||||||
|
local -a replace_deploy_args deploy_args
|
||||||
|
local project_name container_name
|
||||||
docker_set_deploy_args set_container_name
|
docker_set_deploy_args set_container_name
|
||||||
service="${container_name}_${service#${container_name}_}"
|
service="${container_name}_${service#${container_name}_}"
|
||||||
docker_service "$command" "$@" "$service"
|
docker_service "$command" "${command_args[@]}" "$@" "$service"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue