upgrade duniter to gtest

This commit is contained in:
Yann Autissier
2025-10-12 04:36:10 +02:00
parent 20d6cdfe72
commit ca0c095ccc
6 changed files with 45 additions and 48 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ fi
for docker in $(curl --disable --fail --show-error --silent --unix-socket "${DOCKER_SOCK}" http://localhost/containers/json |jq -r '.[].Id'); do
# print "health_status id name ip_address health_output" for each docker
curl --disable --fail --show-error --silent --unix-socket "${DOCKER_SOCK}" "http://localhost/containers/${docker}/json" \
|jq -r '[.State.Health.Status, .Id, .Name, .NetworkSettings.IPAddress, .State.Health.Log[0].Output] |@tsv'
|jq -r '[.State.Health.Status, .Id, .Name, .NetworkSettings.Networks[].IPAddress, .State.Health.Log[0].Output] |@tsv'
# shorten id: .Id |capture("(?<id>.{12})").id
# print "health_status" and "health_output" for line matching $1
done |awk -F '\t' '/\<'"$1"'\>/ {print $1 | "cat >&3; exec 3>&-"; print $NF | "cat >&4";}'