diff --git a/docs/configuration/environment-variables.md b/docs/configuration/environment-variables.md index d0c7c7c7c..6d8b266a5 100644 --- a/docs/configuration/environment-variables.md +++ b/docs/configuration/environment-variables.md @@ -114,6 +114,7 @@ The following list config variables have special meaning and can be set in a var | `DOKKU_DOCKERFILE_ENTRYPOINT` | dockerfile entrypoint | `dokku config:set` | | | `DOKKU_DOCKERFILE_PORTS` | dockerfile ports | `dokku config:set` | | | `DOKKU_DOCKERFILE_START_CMD` | none | `dokku config:set` | | +| `DOKKU_PARALLEL_ARGUMENTS`. | none | `dokku config:set` | Allows passing custom arguments to parallel for `ps:*all` commands | | `DOKKU_PROXY_PORT` | automatically assigned | `dokku config:set` | | | `DOKKU_PROXY_SSL_PORT` | automatically assigned | `dokku config:set` | | | `DOKKU_PROXY_PORT_MAP` | automatically assigned | `dokku proxy:ports-add`
`dokku proxy:ports-remove`, `dokku proxy:ports-clear` | | diff --git a/plugins/ps/internal-functions b/plugins/ps/internal-functions index e18661e07..dc816f641 100755 --- a/plugins/ps/internal-functions +++ b/plugins/ps/internal-functions @@ -139,10 +139,10 @@ fn-ps-parallel-cmd() { GNU_PARALLEL=$(parallel -V 2>&1 | grep GNU || true) if [[ -z "$GNU_PARALLEL" ]]; then # shellcheck disable=SC2046 - parallel -i bash -c "dokku ps:${CMD} {}" -- $(dokku_apps) + parallel $DOKKU_PARALLEL_ARGUMENTS -i bash -c "dokku ps:${CMD} {}" -- $(dokku_apps) else # shellcheck disable=SC2046 - dokku_apps | parallel "dokku ps:${CMD} {}" + dokku_apps | parallel $DOKKU_PARALLEL_ARGUMENTS "dokku ps:${CMD} {}" fi return fi