mirror of
https://github.com/dokku/dokku.git
synced 2026-07-10 20:40:43 +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.
32 lines
782 B
Bash
32 lines
782 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-railpack-computed-railpackjson-path() {
|
|
declare APP="$1"
|
|
|
|
file="$(fn-builder-railpack-railpackjson-path "$APP")"
|
|
if [[ "$file" == "" ]]; then
|
|
file="$(fn-builder-railpack-global-railpackjson-path "$APP")"
|
|
fi
|
|
if [[ "$file" == "" ]]; then
|
|
file="railpack.json"
|
|
fi
|
|
|
|
echo "$file"
|
|
}
|
|
|
|
fn-builder-railpack-global-railpackjson-path() {
|
|
declare APP="$1"
|
|
|
|
fn-plugin-property-get "builder-railpack" "--global" "railpackjson-path" ""
|
|
}
|
|
|
|
fn-builder-railpack-railpackjson-path() {
|
|
declare APP="$1"
|
|
|
|
fn-plugin-property-get "builder-railpack" "$APP" "railpackjson-path" ""
|
|
}
|