From 3fdf66a61cea7fc6f6154b8b9a3ce57ed7960317 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 10 Sep 2020 18:51:27 +0200 Subject: [PATCH] run-builder: use jq instead of inspect --format Because podman on RHEL 8.2 does not understand --format, so we basically do the same now via 'jq'. --- run-builder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-builder.sh b/run-builder.sh index 2006589..d3701b3 100755 --- a/run-builder.sh +++ b/run-builder.sh @@ -20,7 +20,7 @@ else fi builder_start() { - GATEWAY_IP=$(podman network inspect org.osbuild.koji --format '{{ (index (index (index .plugins 0).ipam.ranges 0) 0).gateway }}') + GATEWAY_IP=$(${CONTAINER_RUNTIME} network inspect org.osbuild.koji | jq -r ".[0].plugins[0].ipam.ranges[0][0].gateway") echo "Gateway IP is $GATEWAY_IP" ${CONTAINER_RUNTIME} run --rm ${CONTAINER_FLAGS} \