Skip to content

Commit

Permalink
armbian-next: docker: show $SECONDS in Docker dash logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rpardini committed Feb 18, 2023
1 parent ca6bf90 commit a75e58c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/functions/host/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -528,15 +528,15 @@ function docker_cli_launch() {
fi

display_alert "Relaunching in Docker" "${*}" "debug"
display_alert "-----------------Relaunching in Docker------------------------------------" "here comes the 🐳" "info"
display_alert "-----------------Relaunching in Docker after ${SECONDS}s------------------" "here comes the 🐳" "info"

local -i docker_build_result
if docker run "${DOCKER_ARGS[@]}" "${DOCKER_ARMBIAN_INITIAL_IMAGE_TAG}" /bin/bash "${DOCKER_ARMBIAN_TARGET_PATH}/compile.sh" "$@"; then
docker_build_result=$? # capture exit code of test done in the line above.
display_alert "-------------Docker run finished------------------------------------------" "successfully" "info"
display_alert "-------------Docker run finished after ${SECONDS}s------------------------" "🐳 successfull" "info"
else
docker_build_result=$? # capture exit code of test done 4 lines above.
display_alert "-------------Docker run failed--------------------------------------------" "with errors" "err"
display_alert "-------------Docker run failed after ${SECONDS}s--------------------------" "🐳 failed" "err"
fi

# Find and show the path to the log file for the ARMBIAN_BUILD_UUID.
Expand Down

0 comments on commit a75e58c

Please sign in to comment.