fix: update filtered args
This commit is contained in:
committed by
GitHub
parent
9dcf17be69
commit
a9d2610e34
@@ -83,7 +83,7 @@ execute_script() {
|
|||||||
|
|
||||||
local DOCKER_ARGS=$(: | plugn trigger docker-args-deploy "$APP" "$IMAGE_TAG")
|
local DOCKER_ARGS=$(: | plugn trigger docker-args-deploy "$APP" "$IMAGE_TAG")
|
||||||
# strip certain args from DOCKER_ARGS
|
# strip certain args from DOCKER_ARGS
|
||||||
local filtered_args=("restart" "cpu" "memory" "memory-swap" "network" "network-ingress" "network-egress" "nvidia-gpu")
|
local filtered_args=("restart" "cpus" "memory" "memory-swap" "gpus" "memory-reservation")
|
||||||
for filtered_arg in "${filtered_args[@]}"; do
|
for filtered_arg in "${filtered_args[@]}"; do
|
||||||
DOCKER_ARGS=$(sed -e "s/--${filtered_arg}=[[:graph:]]\+[[:blank:]]\?//g" <<<"$DOCKER_ARGS")
|
DOCKER_ARGS=$(sed -e "s/--${filtered_arg}=[[:graph:]]\+[[:blank:]]\?//g" <<<"$DOCKER_ARGS")
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user