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                      gcc \
29                      gcovr \
30                      gettext \
31                      git \
32                      hostname \
33                      libaio-dev \
34                      libasan6 \
35                      libasound2-dev \
36                      libattr1-dev \
37                      libbpf-dev \
38                      libbrlapi-dev \
39                      libbz2-dev \
40                      libc6-dev \
41                      libcacard-dev \
42                      libcap-ng-dev \
43                      libcapstone-dev \
44                      libcmocka-dev \
45                      libcurl4-gnutls-dev \
46                      libdaxctl-dev \
47                      libdrm-dev \
48                      libepoxy-dev \
49                      libfdt-dev \
50                      libffi-dev \
51                      libfuse3-dev \
52                      libgbm-dev \
53                      libgcrypt20-dev \
54                      libglib2.0-dev \
55                      libglusterfs-dev \
56                      libgnutls28-dev \
57                      libgtk-3-dev \
58                      libibverbs-dev \
59                      libiscsi-dev \
60                      libjemalloc-dev \
61                      libjpeg-turbo8-dev \
62                      libjson-c-dev \
63                      liblttng-ust-dev \
64                      liblzo2-dev \
65                      libncursesw5-dev \
66                      libnfs-dev \
67                      libnuma-dev \
68                      libpam0g-dev \
69                      libpcre2-dev \
70                      libpipewire-0.3-dev \
71                      libpixman-1-dev \
72                      libpmem-dev \
73                      libpng-dev \
74                      libpulse-dev \
75                      librbd-dev \
76                      librdmacm-dev \
77                      libsasl2-dev \
78                      libsdl2-dev \
79                      libsdl2-image-dev \
80                      libseccomp-dev \
81                      libselinux1-dev \
82                      libslirp-dev \
83                      libsnappy-dev \
84                      libsndio-dev \
85                      libspice-protocol-dev \
86                      libspice-server-dev \
87                      libssh-dev \
88                      libsystemd-dev \
89                      libtasn1-6-dev \
90                      libubsan1 \
91                      libudev-dev \
92                      liburing-dev \
93                      libusb-1.0-0-dev \
94                      libusbredirhost-dev \
95                      libvdeplug-dev \
96                      libvirglrenderer-dev \
97                      libvte-2.91-dev \
98                      libxen-dev \
99                      libzstd-dev \
100                      llvm \
101                      locales \
102                      make \
103                      meson \
104                      mtools \
105                      multipath-tools \
106                      ncat \
107                      nettle-dev \
108                      ninja-build \
109                      openssh-client \
110                      pkgconf \
111                      python3 \
112                      python3-numpy \
113                      python3-opencv \
114                      python3-pillow \
115                      python3-pip \
116                      python3-sphinx \
117                      python3-sphinx-rtd-theme \
118                      python3-tomli \
119                      python3-venv \
120                      python3-yaml \
121                      rpm2cpio \
122                      sed \
123                      socat \
124                      sparse \
125                      swtpm \
126                      systemtap-sdt-dev \
127                      tar \
128                      tesseract-ocr \
129                      tesseract-ocr-eng \
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    rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
138    dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
139    mkdir -p /usr/libexec/ccache-wrappers && \
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/gcc
143
144ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
145ENV LANG "en_US.UTF-8"
146ENV MAKE "/usr/bin/make"
147ENV NINJA "/usr/bin/ninja"
148ENV PYTHON "/usr/bin/python3"
149# As a final step configure the user (if env is defined)
150ARG USER
151ARG UID
152RUN if [ "${USER}" ]; then \
153  id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
154