Add services listing script

This commit is contained in:
Luke Murphy 2020-10-27 08:51:55 +01:00
parent 9855b54766
commit 4b3db2f67e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 9 additions and 1 deletions

View File

@ -10,4 +10,5 @@ Gardening the Cooperative Cloud configurations.
### Scripts
- **clone_all.py**: clone all coop-cloud/... repositories into a local clones folder
- **clone_all.py**: clone all `coop-cloud/...` repositories into a local `clones/...` folder
- **list_services.sh**: show all `services:...` in all `compose.yml` files under `clones/...`

7
list_services.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
for f in clones/*/compose.yml;
do echo "${f}" && \
yq read --printMode p "$f" 'services.*' && \
echo;
done