Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Try parsing compose statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
major committed Sep 14, 2023
1 parent 6a20103 commit 2ea19fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ sleep 10

COUNTER=0
while true; do
composer-cli --json compose status | tee /output/compose_info.json
composer-cli --json compose status | tee compose_info.json

COMPOSE_STATUS=$(jq -r ".[].body.queue_status" output/compose_info.json)
COMPOSE_STATUS=$(jq -r --arg COMPOSE_ID "${COMPOSE_ID}" '.[].body[][] | select(.id==$COMPOSE_ID).queue_status' compose_info.json)

# Print a status line once per minute.
if [ $((COUNTER % 60)) -eq 0 ]; then
Expand Down

0 comments on commit 2ea19fd

Please sign in to comment.