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:
parent
dd2d3cf0a9
commit
3fdf66a61c
1 changed files with 1 additions and 1 deletions
|
|
@ -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} \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue