1# THIS FILE WAS AUTO-GENERATED
2#
3#  $ lcitool dockerfile --layers all --cross x86_64 debian-11 qemu
4#
5# https://gitlab.com/libvirt/libvirt-ci
6
7FROM docker.io/library/debian:11-slim
8
9RUN export DEBIAN_FRONTEND=noninteractive && \
10    apt-get update && \
11    apt-get install -y eatmydata && \
12    eatmydata apt-get dist-upgrade -y && \
13    eatmydata apt-get install --no-install-recommends -y \
14            bash \
15            bc \
16            bsdextrautils \
17            bzip2 \
18            ca-certificates \
19            ccache \
20            dbus \
21            debianutils \
22            diffutils \
23            exuberant-ctags \
24            findutils \
25            gcovr \
26            genisoimage \
27            gettext \
28            git \
29            hostname \
30            libpcre2-dev \
31            libspice-protocol-dev \
32            llvm \
33            locales \
34            make \
35            meson \
36            ncat \
37            ninja-build \
38            openssh-client \
39            perl-base \
40            pkgconf \
41            python3 \
42            python3-numpy \
43            python3-opencv \
44            python3-pillow \
45            python3-pip \
46            python3-sphinx \
47            python3-sphinx-rtd-theme \
48            python3-venv \
49            python3-yaml \
50            rpm2cpio \
51            sed \
52            sparse \
53            tar \
54            tesseract-ocr \
55            tesseract-ocr-eng \
56            texinfo && \
57    eatmydata apt-get autoremove -y && \
58    eatmydata apt-get autoclean -y && \
59    sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
60    dpkg-reconfigure locales
61
62ENV LANG "en_US.UTF-8"
63ENV MAKE "/usr/bin/make"
64ENV NINJA "/usr/bin/ninja"
65ENV PYTHON "/usr/bin/python3"
66ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
67
68RUN export DEBIAN_FRONTEND=noninteractive && \
69    dpkg --add-architecture amd64 && \
70    eatmydata apt-get update && \
71    eatmydata apt-get dist-upgrade -y && \
72    eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
73    eatmydata apt-get install --no-install-recommends -y \
74            g++-x86-64-linux-gnu \
75            gcc-x86-64-linux-gnu \
76            libaio-dev:amd64 \
77            libasan5:amd64 \
78            libasound2-dev:amd64 \
79            libattr1-dev:amd64 \
80            libbpf-dev:amd64 \
81            libbrlapi-dev:amd64 \
82            libbz2-dev:amd64 \
83            libc6-dev:amd64 \
84            libcacard-dev:amd64 \
85            libcap-ng-dev:amd64 \
86            libcapstone-dev:amd64 \
87            libcmocka-dev:amd64 \
88            libcurl4-gnutls-dev:amd64 \
89            libdaxctl-dev:amd64 \
90            libdrm-dev:amd64 \
91            libepoxy-dev:amd64 \
92            libfdt-dev:amd64 \
93            libffi-dev:amd64 \
94            libfuse3-dev:amd64 \
95            libgbm-dev:amd64 \
96            libgcrypt20-dev:amd64 \
97            libglib2.0-dev:amd64 \
98            libglusterfs-dev:amd64 \
99            libgnutls28-dev:amd64 \
100            libgtk-3-dev:amd64 \
101            libibumad-dev:amd64 \
102            libibverbs-dev:amd64 \
103            libiscsi-dev:amd64 \
104            libjemalloc-dev:amd64 \
105            libjpeg62-turbo-dev:amd64 \
106            libjson-c-dev:amd64 \
107            liblttng-ust-dev:amd64 \
108            liblzo2-dev:amd64 \
109            libncursesw5-dev:amd64 \
110            libnfs-dev:amd64 \
111            libnuma-dev:amd64 \
112            libpam0g-dev:amd64 \
113            libpixman-1-dev:amd64 \
114            libpmem-dev:amd64 \
115            libpng-dev:amd64 \
116            libpulse-dev:amd64 \
117            librbd-dev:amd64 \
118            librdmacm-dev:amd64 \
119            libsasl2-dev:amd64 \
120            libsdl2-dev:amd64 \
121            libsdl2-image-dev:amd64 \
122            libseccomp-dev:amd64 \
123            libselinux1-dev:amd64 \
124            libslirp-dev:amd64 \
125            libsnappy-dev:amd64 \
126            libspice-server-dev:amd64 \
127            libssh-gcrypt-dev:amd64 \
128            libsystemd-dev:amd64 \
129            libtasn1-6-dev:amd64 \
130            libubsan1:amd64 \
131            libudev-dev:amd64 \
132            liburing-dev:amd64 \
133            libusb-1.0-0-dev:amd64 \
134            libusbredirhost-dev:amd64 \
135            libvdeplug-dev:amd64 \
136            libvirglrenderer-dev:amd64 \
137            libvte-2.91-dev:amd64 \
138            libxen-dev:amd64 \
139            libzstd-dev:amd64 \
140            nettle-dev:amd64 \
141            systemtap-sdt-dev:amd64 \
142            xfslibs-dev:amd64 \
143            zlib1g-dev:amd64 && \
144    eatmydata apt-get autoremove -y && \
145    eatmydata apt-get autoclean -y && \
146    mkdir -p /usr/local/share/meson/cross && \
147    echo "[binaries]\n\
148c = '/usr/bin/x86_64-linux-gnu-gcc'\n\
149ar = '/usr/bin/x86_64-linux-gnu-gcc-ar'\n\
150strip = '/usr/bin/x86_64-linux-gnu-strip'\n\
151pkgconfig = '/usr/bin/x86_64-linux-gnu-pkg-config'\n\
152\n\
153[host_machine]\n\
154system = 'linux'\n\
155cpu_family = 'x86_64'\n\
156cpu = 'x86_64'\n\
157endian = 'little'" > /usr/local/share/meson/cross/x86_64-linux-gnu && \
158    dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
159    mkdir -p /usr/libexec/ccache-wrappers && \
160    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-linux-gnu-c++ && \
161    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-linux-gnu-cc && \
162    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-linux-gnu-g++ && \
163    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/x86_64-linux-gnu-gcc
164
165ENV ABI "x86_64-linux-gnu"
166ENV MESON_OPTS "--cross-file=x86_64-linux-gnu"
167ENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-linux-gnu-
168ENV DEF_TARGET_LIST x86_64-softmmu,x86_64-linux-user,i386-softmmu,i386-linux-user
169