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'.
This commit is contained in:
Christian Kellner 2020-09-10 18:51:27 +02:00 committed by Tom Gundersen
parent dd2d3cf0a9
commit 3fdf66a61c

View file

@ -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} \