test: make run-builder.sh work with podman 4
RHEL is now shipping podman 4 that encodes the networks differently, let's implement a small dirty hack to fix it on RHEL before https://github.com/osbuild/koji-osbuild/pull/100 can land and fix it properly.
This commit is contained in:
parent
12773dbe25
commit
3930f277fc
1 changed files with 6 additions and 1 deletions
|
|
@ -22,7 +22,12 @@ else
|
|||
fi
|
||||
|
||||
builder_start() {
|
||||
GATEWAY_IP=$(${CONTAINER_RUNTIME} network inspect org.osbuild.koji | jq -r ".[0].plugins[0].ipam.ranges[0][0].gateway")
|
||||
source /etc/os-release
|
||||
if [[ $ID == rhel ]]; then
|
||||
GATEWAY_IP=$(${CONTAINER_RUNTIME} network inspect org.osbuild.koji | jq -r ".[0].subnets[0].gateway")
|
||||
else
|
||||
GATEWAY_IP=$(${CONTAINER_RUNTIME} network inspect org.osbuild.koji | jq -r ".[0].plugins[0].ipam.ranges[0][0].gateway")
|
||||
fi
|
||||
echo "Gateway IP is $GATEWAY_IP"
|
||||
|
||||
# maybe copy the 'builder' plugin to the share dir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue