feature request: provide command to retrieve the status for all apps deployed on a server #489

Closed
opened 2025-01-22 09:01:15 +00:00 by stevensting · 4 comments

Once having 10plus containers running on a server this feature would be really helpful. :)

Once having 10plus containers running on a server this feature would be really helpful. :)
Member

Have you tried
abra app ls -S -s <SERVER>
?

Have you tried `abra app ls -S -s <SERVER>` ?
Author

Have you tried
abra app ls -S -s <SERVER>
?

Thanks, wasn't aware of that. Is the status the same as I can get with
abra app ps <APP>

> Have you tried > `abra app ls -S -s <SERVER>` > ? Thanks, wasn't aware of that. Is the status the same as I can get with `abra app ps <APP>`
Owner

. Is the status the same as I can get with abra app ps <APP>

@stevensting it's different:

➜ abra app ls -s example.com -S
┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃        RECIPE        ┃        DOMAIN        ┃    SERVER    ┃  STATUS  ┃    CHAOS     ┃     VERSION      ┃      UPGRADE      ┃AUTOUPDATE┃
┣━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━┫
┃ custom-html          ┃ wemakestuff.work     ┃ b0x.f0x.link ┃ unknown  ┃ unknown      ┃ unknown          ┃ unknown           ┃ unknown  ┃
┃ custom-html          ┃ foo.example.com       ┃ example.com ┃ deployed ┃ false        ┃ 1.6.0+1.26.0     ┃ 1.7.1+1.27.2      ┃ false    ┃
┃                      ┃                      ┃              ┃          ┃              ┃                  ┃ 1.7.0+1.27.1      ┃          ┃
┃ custom-html          ┃ bar.example.com   ┃ example.com ┃ deployed ┃ false        ┃ 1.6.0+1.26.0     ┃ 1.7.1+1.27.2      ┃ false    ┃
┃                      ┃                      ┃              ┃          ┃              ┃                  ┃ 1.7.0+1.27.1      ┃          ┃

I don't have an opinion on adding a built-in way to do abra app ps on all apps on a server, but unless and until it's added you could also use abra's -m (machine readable output) flag + jq + some bash:

➜ for app in $(abra app ls -s example.com -m | jq -r 'to_entries|.[0].value.apps.[].appName'); do echo "APP: $app" && abra app ps $app; done
APP: foobar_name
FATA foobar_name is not deployed?
APP: foo.example.com
┏━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┓
┃SERVICE┃    IMAGE     ┃   VERSION    ┃ CHAOS ┃   STATUS   ┃
┣━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━╋━━━━━━━━━━━━┫
┃ app   ┃ nginx:1.26.0 ┃ 1.6.0+1.26.0 ┃ false ┃ Up 5 weeks ┃
┗━━━━━━━┻━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┻━━━━━━━┻━━━━━━━━━━━━┛
> . Is the status the same as I can get with `abra app ps <APP>` @stevensting it's different: ``` ➜ abra app ls -s example.com -S ┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓ ┃ RECIPE ┃ DOMAIN ┃ SERVER ┃ STATUS ┃ CHAOS ┃ VERSION ┃ UPGRADE ┃AUTOUPDATE┃ ┣━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━┫ ┃ custom-html ┃ wemakestuff.work ┃ b0x.f0x.link ┃ unknown ┃ unknown ┃ unknown ┃ unknown ┃ unknown ┃ ┃ custom-html ┃ foo.example.com ┃ example.com ┃ deployed ┃ false ┃ 1.6.0+1.26.0 ┃ 1.7.1+1.27.2 ┃ false ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃ 1.7.0+1.27.1 ┃ ┃ ┃ custom-html ┃ bar.example.com ┃ example.com ┃ deployed ┃ false ┃ 1.6.0+1.26.0 ┃ 1.7.1+1.27.2 ┃ false ┃ ┃ ┃ ┃ ┃ ┃ ┃ ┃ 1.7.0+1.27.1 ┃ ┃ ``` I don't have an opinion on adding a built-in way to do `abra app ps` on all apps on a server, but unless and until it's added you could also use abra's `-m` (machine readable output) flag + `jq` + some bash: ``` ➜ for app in $(abra app ls -s example.com -m | jq -r 'to_entries|.[0].value.apps.[].appName'); do echo "APP: $app" && abra app ps $app; done APP: foobar_name FATA foobar_name is not deployed? APP: foo.example.com ┏━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━┓ ┃SERVICE┃ IMAGE ┃ VERSION ┃ CHAOS ┃ STATUS ┃ ┣━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━╋━━━━━━━━━━━━┫ ┃ app ┃ nginx:1.26.0 ┃ 1.6.0+1.26.0 ┃ false ┃ Up 5 weeks ┃ ┗━━━━━━━┻━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┻━━━━━━━┻━━━━━━━━━━━━┛ ```
Owner

We also have a prototype for this:

https://git.coopcloud.tech/decentral1se/cctuip

Seems like this one is solved? Please re-open if not!

We also have a prototype for this: > https://git.coopcloud.tech/decentral1se/cctuip Seems like this one is solved? Please re-open if not!
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#489
No description provided.