1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2024-10-26 07:55:06 +03:00

ci: refresh dockerfiles for changed libvirt build system

Libvirt changed from autotools to meson. All the containers need
refreshing and the CI recipes updated.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2020-08-04 12:23:26 +01:00
parent 2966ed6085
commit dc1dc11efe
14 changed files with 160 additions and 123 deletions

View File

@ -29,18 +29,18 @@ stages:
- export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"
- export SCRATCH_DIR="/tmp/scratch"
- export VROOT="$SCRATCH_DIR/vroot"
- export LD_LIBRARY_PATH="$VROOT/lib"
- export LIBDIR="$VROOT/lib"
- export LD_LIBRARY_PATH="$LIBDIR"
- export PATH="$VROOT/bin:$PATH"
- export PKG_CONFIG_PATH="$VROOT/lib/pkgconfig"
- export PKG_CONFIG_PATH="$LIBDIR/pkgconfig"
script:
- pushd "$PWD"
- mkdir -p "$SCRATCH_DIR"
- cd "$SCRATCH_DIR"
- git clone --depth 1 https://gitlab.com/libvirt/libvirt.git
- mkdir libvirt/build
- cd libvirt/build
- ../autogen.sh --prefix="$VROOT" --without-libvirtd
- $MAKE install
- cd libvirt
- meson build -Ddriver_libvirtd=disabled "--prefix=$VROOT" "--libdir=$LIBDIR"
- ninja -C build install
- popd
- $PYTHON setup.py build
- $PYTHON setup.py install
@ -83,10 +83,10 @@ centos-8-container:
variables:
NAME: centos-8
debian-9-container:
centos-stream-container:
<<: *container_job_definition
variables:
NAME: debian-9
NAME: centos-stream
debian-10-container:
<<: *container_job_definition
@ -146,10 +146,10 @@ centos-8-dist-build:
variables:
NAME: centos-8
debian-9-dist-build:
centos-stream-dist-build:
<<: *dist_build_job_definition
variables:
NAME: debian-9
NAME: centos-stream
debian-10-dist-build:
<<: *dist_build_job_definition

View File

@ -55,6 +55,7 @@ WEiJKtQrZDJloqtyi/mmRa1VsV7RYR0VPJjhK/R8EQ7Ysshy\n\
ninja-build \
patch \
perl \
perl-App-cpanminus \
pkgconfig \
python3 \
python3-pip \
@ -67,7 +68,8 @@ WEiJKtQrZDJloqtyi/mmRa1VsV7RYR0VPJjhK/R8EQ7Ysshy\n\
screen \
strace \
sudo \
vim && \
vim \
xz && \
yum autoremove -y && \
yum clean all -y && \
mkdir -p /usr/libexec/ccache-wrappers && \
@ -75,7 +77,7 @@ WEiJKtQrZDJloqtyi/mmRa1VsV7RYR0VPJjhK/R8EQ7Ysshy\n\
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/$(basename /usr/bin/gcc)
RUN pip3 install \
meson==0.49.0
meson==0.54.0
ENV LANG "en_US.UTF-8"

View File

@ -1,7 +1,7 @@
FROM centos:8
RUN dnf install 'dnf-command(config-manager)' -y && \
dnf config-manager --set-enabled PowerTools -y && \
dnf config-manager --set-enabled -y PowerTools && \
dnf install -y epel-release && \
dnf update -y && \
dnf install -y \
@ -30,17 +30,18 @@ RUN dnf install 'dnf-command(config-manager)' -y && \
libxslt \
lsof \
make \
meson \
net-tools \
ninja-build \
patch \
perl \
perl-App-cpanminus \
pkgconfig \
python3 \
python3-devel \
python3-docutils \
python3-lxml \
python3-nose \
python3-pip \
python3-setuptools \
python3-wheel \
rpcgen \
@ -48,13 +49,17 @@ RUN dnf install 'dnf-command(config-manager)' -y && \
screen \
strace \
sudo \
vim && \
vim \
xz && \
dnf autoremove -y && \
dnf clean all -y && \
mkdir -p /usr/libexec/ccache-wrappers && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/$(basename /usr/bin/gcc)
RUN pip3 install \
meson==0.54.0
ENV LANG "en_US.UTF-8"
ENV MAKE "/usr/bin/make"

View File

@ -0,0 +1,61 @@
FROM centos:8
RUN dnf install -y centos-release-stream && \
dnf install 'dnf-command(config-manager)' -y && \
dnf config-manager --set-enabled -y Stream-PowerTools && \
dnf install -y epel-release && \
dnf update -y && \
dnf install -y \
autoconf \
automake \
bash \
bash-completion \
ca-certificates \
ccache \
chrony \
gcc \
gdb \
gettext \
gettext-devel \
git \
glibc-devel \
glibc-langpack-en \
libtool \
libvirt-devel \
lsof \
make \
net-tools \
ninja-build \
patch \
perl \
perl-App-cpanminus \
pkgconfig \
python3 \
python3-devel \
python3-lxml \
python3-nose \
python3-pip \
python3-setuptools \
python3-wheel \
rpm-build \
screen \
strace \
sudo \
vim \
xz && \
dnf autoremove -y && \
dnf clean all -y && \
mkdir -p /usr/libexec/ccache-wrappers && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/$(basename /usr/bin/gcc)
RUN pip3 install \
meson==0.54.0
ENV LANG "en_US.UTF-8"
ENV MAKE "/usr/bin/make"
ENV NINJA "/usr/bin/ninja"
ENV PYTHON "/usr/bin/python3"
ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"

View File

@ -12,6 +12,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
ca-certificates \
ccache \
chrony \
cpanminus \
gcc \
gdb \
gettext \
@ -23,7 +24,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
locales \
lsof \
make \
meson \
net-tools \
ninja-build \
patch \
@ -33,12 +33,14 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
python3-dev \
python3-lxml \
python3-nose \
python3-pip \
python3-setuptools \
python3-wheel \
screen \
strace \
sudo \
vim && \
vim \
xz-utils && \
apt-get autoremove -y && \
apt-get autoclean -y && \
sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
@ -47,6 +49,9 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/$(basename /usr/bin/gcc)
RUN pip3 install \
meson==0.54.0
ENV LANG "en_US.UTF-8"
ENV MAKE "/usr/bin/make"

View File

@ -1,59 +0,0 @@
FROM debian:9
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get dist-upgrade -y && \
apt-get install --no-install-recommends -y \
autoconf \
automake \
autopoint \
bash \
bash-completion \
ca-certificates \
ccache \
chrony \
gcc \
gdb \
gettext \
git \
libc6-dev \
libtool \
libtool-bin \
libvirt-dev \
locales \
lsof \
make \
net-tools \
ninja-build \
patch \
perl \
pkgconf \
python3 \
python3-dev \
python3-lxml \
python3-nose \
python3-pip \
python3-setuptools \
python3-wheel \
screen \
strace \
sudo \
vim && \
apt-get autoremove -y && \
apt-get autoclean -y && \
sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
dpkg-reconfigure locales && \
mkdir -p /usr/libexec/ccache-wrappers && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/$(basename /usr/bin/gcc)
RUN pip3 install \
meson==0.49.0
ENV LANG "en_US.UTF-8"
ENV MAKE "/usr/bin/make"
ENV NINJA "/usr/bin/ninja"
ENV PYTHON "/usr/bin/python3"
ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"

View File

@ -12,6 +12,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
ca-certificates \
ccache \
chrony \
cpanminus \
gcc \
gdb \
gettext \
@ -33,12 +34,14 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
python3-dev \
python3-lxml \
python3-nose \
python3-pip \
python3-setuptools \
python3-wheel \
screen \
strace \
sudo \
vim && \
vim \
xz-utils && \
apt-get autoremove -y && \
apt-get autoclean -y && \
sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \

View File

@ -21,29 +21,34 @@ RUN dnf update -y && \
libvirt-devel \
lsof \
make \
meson \
net-tools \
ninja-build \
patch \
perl \
perl-App-cpanminus \
pkgconfig \
python3 \
python3-devel \
python3-lxml \
python3-nose \
python3-pip \
python3-setuptools \
python3-wheel \
rpm-build \
screen \
strace \
sudo \
vim && \
vim \
xz && \
dnf autoremove -y && \
dnf clean all -y && \
mkdir -p /usr/libexec/ccache-wrappers && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/$(basename /usr/bin/gcc)
RUN pip3 install \
meson==0.54.0
ENV LANG "en_US.UTF-8"
ENV MAKE "/usr/bin/make"

View File

@ -26,18 +26,21 @@ RUN dnf update -y && \
ninja-build \
patch \
perl \
perl-App-cpanminus \
pkgconfig \
python3 \
python3-devel \
python3-lxml \
python3-nose \
python3-pip \
python3-setuptools \
python3-wheel \
rpm-build \
screen \
strace \
sudo \
vim && \
vim \
xz && \
dnf autoremove -y && \
dnf clean all -y && \
mkdir -p /usr/libexec/ccache-wrappers && \

View File

@ -27,18 +27,21 @@ RUN dnf update -y --nogpgcheck fedora-gpg-keys && \
ninja-build \
patch \
perl \
perl-App-cpanminus \
pkgconfig \
python3 \
python3-devel \
python3-lxml \
python3-nose \
python3-pip \
python3-setuptools \
python3-wheel \
rpm-build \
screen \
strace \
sudo \
vim && \
vim \
xz && \
dnf autoremove -y && \
dnf clean all -y && \
mkdir -p /usr/libexec/ccache-wrappers && \

View File

@ -2,49 +2,51 @@ FROM opensuse/leap:15.1
RUN zypper update -y && \
zypper install -y \
autoconf \
automake \
bash \
bash-completion \
ca-certificates \
ccache \
chrony \
cppi \
gcc \
gdb \
gettext \
gettext-devel \
git \
glibc-devel \
glibc-locale \
libtool \
libvirt-devel \
lsof \
make \
net-tools \
ninja \
patch \
perl \
pkgconfig \
python3 \
python3-devel \
python3-lxml \
python3-nose \
python3-pip \
python3-setuptools \
python3-wheel \
rpm-build \
screen \
strace \
sudo \
vim && \
autoconf \
automake \
bash \
bash-completion \
ca-certificates \
ccache \
chrony \
cppi \
gcc \
gdb \
gettext \
gettext-devel \
git \
glibc-devel \
glibc-locale \
libtool \
libvirt-devel \
lsof \
make \
net-tools \
ninja \
patch \
perl \
perl-App-cpanminus \
pkgconfig \
python3 \
python3-devel \
python3-lxml \
python3-nose \
python3-pip \
python3-setuptools \
python3-wheel \
rpm-build \
screen \
strace \
sudo \
vim \
xz && \
zypper clean --all && \
mkdir -p /usr/libexec/ccache-wrappers && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/$(basename /usr/bin/gcc)
RUN pip3 install \
meson==0.49.0
meson==0.54.0
ENV LANG "en_US.UTF-8"

View File

@ -12,6 +12,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
ca-certificates \
ccache \
chrony \
cpanminus \
gcc \
gdb \
gettext \
@ -38,7 +39,8 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
screen \
strace \
sudo \
vim && \
vim \
xz-utils && \
apt-get autoremove -y && \
apt-get autoclean -y && \
sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
@ -48,7 +50,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/$(basename /usr/bin/gcc)
RUN pip3 install \
meson==0.49.0
meson==0.54.0
ENV LANG "en_US.UTF-8"

View File

@ -12,6 +12,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
ca-certificates \
ccache \
chrony \
cpanminus \
gcc \
gdb \
gettext \
@ -23,7 +24,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
locales \
lsof \
make \
meson \
net-tools \
ninja-build \
patch \
@ -33,12 +33,14 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
python3-dev \
python3-lxml \
python3-nose \
python3-pip \
python3-setuptools \
python3-wheel \
screen \
strace \
sudo \
vim && \
vim \
xz-utils && \
apt-get autoremove -y && \
apt-get autoclean -y && \
sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
@ -47,6 +49,9 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/$(basename /usr/bin/gcc)
RUN pip3 install \
meson==0.54.0
ENV LANG "en_US.UTF-8"
ENV MAKE "/usr/bin/make"

View File

@ -14,7 +14,7 @@ then
exit 1
fi
HOSTS=$($LCITOOL hosts | grep -v freebsd)
HOSTS=$($LCITOOL hosts | grep -v -E '(freebsd|macos)')
for host in $HOSTS
do