1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2026-01-16 20:32:45 +03:00
Files
libvirt-python/ci/containers/ubuntu-2404.Dockerfile
Michal Privoznik 0974ca9326 ci: refresh with 'lcitool manifest'
This drops Fedora 40 and introduces Fedora 42 and drops
deprecated setting of env vars in dockerfiles.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2025-10-06 15:53:59 +02:00

43 lines
1.5 KiB
Docker

# THIS FILE WAS AUTO-GENERATED
#
# $ lcitool manifest ci/manifest.yml
#
# https://gitlab.com/libvirt/libvirt-ci
FROM docker.io/library/ubuntu:24.04
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y eatmydata && \
eatmydata apt-get dist-upgrade -y && \
eatmydata apt-get install --no-install-recommends -y \
ca-certificates \
ccache \
gcc \
git \
libvirt-dev \
locales \
pkgconf \
python3 \
python3-build \
python3-dev \
python3-lxml \
python3-pip \
python3-pytest \
python3-setuptools \
python3-venv \
python3-wheel && \
eatmydata apt-get autoremove -y && \
eatmydata apt-get autoclean -y && \
sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
dpkg-reconfigure locales && \
rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
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/gcc
ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
ENV LANG="en_US.UTF-8"
ENV PYTHON="/usr/bin/python3"