mirror of
https://github.com/dokku/dokku.git
synced 2026-08-29 10:08:53 +02:00
The bash :report implementations for the dockerfile, herokuish, lambda, nixpacks, pack, and railpack builders are replaced with a compiled golang binary that collects report keys in parallel and marshals json directly, avoiding the per-key subshell and jq forks that made the bash reports slow. The subcommands/report and root report trigger become symlinks to the compiled binary, while the non-report bash helpers each plugin still relies on are left in place.
31 lines
802 B
Bash
31 lines
802 B
Bash
#!/usr/bin/env bash
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
fn-builder-herokuish-computed-allowed() {
|
|
declare APP="$1"
|
|
|
|
allowed="$(fn-builder-herokuish-allowed "$APP")"
|
|
if [[ -z "$allowed" ]]; then
|
|
allowed="$(fn-builder-herokuish-global-allowed)"
|
|
fi
|
|
if [[ -z "$allowed" ]]; then
|
|
allowed="true"
|
|
[[ "$(dpkg --print-architecture 2>/dev/null || true)" != "amd64" ]] && allowed="false"
|
|
fi
|
|
|
|
echo "$allowed"
|
|
}
|
|
|
|
fn-builder-herokuish-global-allowed() {
|
|
fn-plugin-property-get-default "builder-herokuish" "--global" "allowed" ""
|
|
}
|
|
|
|
fn-builder-herokuish-allowed() {
|
|
declare APP="$1"
|
|
|
|
fn-plugin-property-get-default "builder-herokuish" "$APP" "allowed" ""
|
|
}
|