From 4b3db2f67eabf50c3a2a8e8de654826ab7e93447 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 27 Oct 2020 08:51:55 +0100 Subject: [PATCH] Add services listing script --- README.md | 3 ++- list_services.sh | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 list_services.sh diff --git a/README.md b/README.md index 498aa95..2d26f25 100644 --- a/README.md +++ b/README.md @@ -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/...` diff --git a/list_services.sh b/list_services.sh new file mode 100755 index 0000000..cf5b565 --- /dev/null +++ b/list_services.sh @@ -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