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