fix: update filtered args

This commit is contained in:
Jose Diaz-Gonzalez
2020-06-19 12:28:31 -04:00
committed by GitHub
parent 9dcf17be69
commit a9d2610e34

View File

@@ -83,7 +83,7 @@ execute_script() {
local DOCKER_ARGS=$(: | plugn trigger docker-args-deploy "$APP" "$IMAGE_TAG")
# 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
DOCKER_ARGS=$(sed -e "s/--${filtered_arg}=[[:graph:]]\+[[:blank:]]\?//g" <<<"$DOCKER_ARGS")
done