| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
if test -z "$1" |
| 4 |
then |
| 5 |
echo "syntax: $0 PATH-TO-LCITOOL" |
| 6 |
exit 1 |
| 7 |
fi |
| 8 |
|
| 9 |
LCITOOL=$1 |
| 10 |
|
| 11 |
if ! test -x "$LCITOOL" |
| 12 |
then |
| 13 |
echo "$LCITOOL is not executable" |
| 14 |
exit 1 |
| 15 |
fi |
| 16 |
|
| 17 |
HOSTS=$($LCITOOL hosts | grep -v -E '(freebsd|macos)') |
| 18 |
|
| 19 |
for host in $HOSTS |
| 20 |
do |
| 21 |
if test "$host" = "centos-stream" |
| 22 |
then |
| 23 |
$LCITOOL dockerfile $host libvirt+minimal,libvirt-glib,libvirt-dbus > ci-$host.Dockerfile |
| 24 |
else |
| 25 |
$LCITOOL dockerfile $host libvirt+dist,libvirt-glib+dist,libvirt-dbus > ci-$host.Dockerfile |
| 26 |
fi |
| 27 |
|
| 28 |
# These distros versions shipped the cpu_map.xml file in |
| 29 |
# the wrong package, so we need to pull libvirt-daemon |
| 30 |
# to make sure tests pass. |
| 31 |
if test "$host" = "debian-9" || |
| 32 |
test "$host" = "ubuntu-1804" |
| 33 |
then |
| 34 |
sed -i -e 's/libvirt-dev/libvirt-dev libvirt-daemon/' ci-$host.Dockerfile |
| 35 |
fi |
| 36 |
done |