From 3a4365baf422238585ce03da655d9b50daf98cb0 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 11 Apr 2023 22:30:24 -0400 Subject: [PATCH] feat: add ability to run dokku report without downloading herokuish image Closes #5792 --- plugins/00_dokku-standard/subcommands/report | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/00_dokku-standard/subcommands/report b/plugins/00_dokku-standard/subcommands/report index 8acd5ed8f..5db40d3e4 100755 --- a/plugins/00_dokku-standard/subcommands/report +++ b/plugins/00_dokku-standard/subcommands/report @@ -26,8 +26,10 @@ cmd-report() { dokku_log_info1 "herokuish version: " if [[ "$ARCHITECTURE" == "armhf" ]] || [[ "$ARCHITECTURE" == "arm64" ]]; then dokku_log_warn "herokuish not supported on $ARCHITECTURE architecture" - else + elif verify_image "$DOKKU_IMAGE"; then "$DOCKER_BIN" container run $DOKKU_GLOBAL_RUN_ARGS --rm "$DOKKU_IMAGE" herokuish version | sed "s/^/ /" + else + dokku_log_warn "Herokuish image $DOKKU_IMAGE is not available" fi dokku_log_info1 "dokku version: $(dokku_version)" dokku_log_info1 "plugn version: $(plugn version)"