1# THIS FILE WAS AUTO-GENERATED
2#
3#  $ lcitool dockerfile --layers all ubuntu-2204 qemu
4#
5# https://gitlab.com/libvirt/libvirt-ci
6
7FROM docker.io/library/ubuntu:22.04
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                      clang \
22                      dbus \
23                      debianutils \
24                      diffutils \
25                      exuberant-ctags \
26                      findutils \
27                      flex \
28                      g++ \
29                      gcc \
30                      gcovr \
31                      gettext \
32                      git \
33                      hostname \
34                      libaio-dev \
35                      libasan5 \
36                      libasound2-dev \
37                      libattr1-dev \
38                      libbpf-dev \
39                      libbrlapi-dev \
40                      libbz2-dev \
41                      libc6-dev \
42                      libcacard-dev \
43                      libcap-ng-dev \
44                      libcapstone-dev \
45                      libcmocka-dev \
46                      libcurl4-gnutls-dev \
47                      libdaxctl-dev \
48                      libdrm-dev \
49                      libepoxy-dev \
50                      libfdt-dev \
51                      libffi-dev \
52                      libfuse3-dev \
53                      libgbm-dev \
54                      libgcrypt20-dev \
55                      libglib2.0-dev \
56                      libglusterfs-dev \
57                      libgnutls28-dev \
58                      libgtk-3-dev \
59                      libibumad-dev \
60                      libibverbs-dev \
61                      libiscsi-dev \
62                      libjemalloc-dev \
63                      libjpeg-turbo8-dev \
64                      libjson-c-dev \
65                      liblttng-ust-dev \
66                      liblzo2-dev \
67                      libncursesw5-dev \
68                      libnfs-dev \
69                      libnuma-dev \
70                      libpam0g-dev \
71                      libpcre2-dev \
72                      libpixman-1-dev \
73                      libpmem-dev \
74                      libpng-dev \
75                      libpulse-dev \
76                      librbd-dev \
77                      librdmacm-dev \
78                      libsasl2-dev \
79                      libsdl2-dev \
80                      libsdl2-image-dev \
81                      libseccomp-dev \
82                      libselinux1-dev \
83                      libslirp-dev \
84                      libsnappy-dev \
85                      libsndio-dev \
86                      libspice-protocol-dev \
87                      libspice-server-dev \
88                      libssh-dev \
89                      libsystemd-dev \
90                      libtasn1-6-dev \
91                      libubsan1 \
92                      libudev-dev \
93                      liburing-dev \
94                      libusb-1.0-0-dev \
95                      libusbredirhost-dev \
96                      libvdeplug-dev \
97                      libvirglrenderer-dev \
98                      libvte-2.91-dev \
99                      libxen-dev \
100                      libzstd-dev \
101                      llvm \
102                      locales \
103                      make \
104                      meson \
105                      mtools \
106                      multipath-tools \
107                      ncat \
108                      nettle-dev \
109                      ninja-build \
110                      openssh-client \
111                      pkgconf \
112                      python3 \
113                      python3-numpy \
114                      python3-opencv \
115                      python3-pillow \
116                      python3-pip \
117                      python3-sphinx \
118                      python3-sphinx-rtd-theme \
119                      python3-venv \
120                      python3-yaml \
121                      rpm2cpio \
122                      sed \
123                      socat \
124                      sparse \
125                      systemtap-sdt-dev \
126                      tar \
127                      tesseract-ocr \
128                      tesseract-ocr-eng \
129                      xfslibs-dev \
130                      xorriso \
131                      zlib1g-dev \
132                      zstd && \
133    eatmydata apt-get autoremove -y && \
134    eatmydata apt-get autoclean -y && \
135    sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
136    dpkg-reconfigure locales && \
137    dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
138    mkdir -p /usr/libexec/ccache-wrappers && \
139    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
140    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
141    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
142    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
143    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
144
145ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
146ENV LANG "en_US.UTF-8"
147ENV MAKE "/usr/bin/make"
148ENV NINJA "/usr/bin/ninja"
149ENV PYTHON "/usr/bin/python3"
150# As a final step configure the user (if env is defined)
151ARG USER
152ARG UID
153RUN if [ "${USER}" ]; then \
154  id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
155