1# THIS FILE WAS AUTO-GENERATED
2#
3#  $ lcitool dockerfile --layers all opensuse-leap-15 qemu
4#
5# https://gitlab.com/libvirt/libvirt-ci
6
7FROM registry.opensuse.org/opensuse/leap:15.5
8
9RUN zypper update -y && \
10    zypper install -y \
11           Mesa-devel \
12           alsa-lib-devel \
13           bash \
14           bc \
15           bison \
16           brlapi-devel \
17           bzip2 \
18           ca-certificates \
19           ccache \
20           clang \
21           ctags \
22           cyrus-sasl-devel \
23           dbus-1 \
24           diffutils \
25           findutils \
26           flex \
27           fuse3-devel \
28           gcc \
29           gcc-c++ \
30           gcovr \
31           gettext-runtime \
32           git \
33           glib2-devel \
34           glibc-locale \
35           glibc-static \
36           glusterfs-devel \
37           gtk3-devel \
38           hostname \
39           jemalloc-devel \
40           libSDL2-devel \
41           libSDL2_image-devel \
42           libaio-devel \
43           libasan8 \
44           libattr-devel \
45           libbpf-devel \
46           libbz2-devel \
47           libcacard-devel \
48           libcap-ng-devel \
49           libcmocka-devel \
50           libcurl-devel \
51           libdrm-devel \
52           libepoxy-devel \
53           libfdt-devel \
54           libffi-devel \
55           libgcrypt-devel \
56           libgnutls-devel \
57           libiscsi-devel \
58           libjpeg8-devel \
59           libjson-c-devel \
60           libndctl-devel \
61           libnettle-devel \
62           libnfs-devel \
63           libnuma-devel \
64           libpixman-1-0-devel \
65           libpmem-devel \
66           libpng16-devel \
67           libpulse-devel \
68           librbd-devel \
69           libseccomp-devel \
70           libselinux-devel \
71           libslirp-devel \
72           libspice-server-devel \
73           libssh-devel \
74           libtasn1-devel \
75           libubsan1 \
76           libudev-devel \
77           liburing-devel \
78           libusb-1_0-devel \
79           libzstd-devel \
80           llvm \
81           lttng-ust-devel \
82           lzo-devel \
83           make \
84           mtools \
85           ncat \
86           ncurses-devel \
87           ninja \
88           openssh \
89           pam-devel \
90           pcre-devel-static \
91           pipewire-devel \
92           pkgconfig \
93           python311 \
94           python311-base \
95           python311-pip \
96           python311-setuptools \
97           rdma-core-devel \
98           sed \
99           snappy-devel \
100           sndio-devel \
101           socat \
102           sparse \
103           spice-protocol-devel \
104           swtpm \
105           systemd-devel \
106           systemtap-sdt-devel \
107           tar \
108           tesseract-ocr \
109           tesseract-ocr-traineddata-english \
110           usbredir-devel \
111           util-linux \
112           virglrenderer-devel \
113           vte-devel \
114           which \
115           xen-devel \
116           xfsprogs-devel \
117           xorriso \
118           zlib-devel \
119           zlib-devel-static \
120           zstd && \
121    zypper clean --all && \
122    rpm -qa | sort > /packages.txt && \
123    mkdir -p /usr/libexec/ccache-wrappers && \
124    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
125    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
126    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
127    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
128    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
129
130RUN /usr/bin/pip3.11 install \
131                     PyYAML \
132                     meson==0.63.2 \
133                     pillow \
134                     sphinx \
135                     sphinx-rtd-theme
136
137ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
138ENV LANG "en_US.UTF-8"
139ENV MAKE "/usr/bin/make"
140ENV NINJA "/usr/bin/ninja"
141ENV PYTHON "/usr/bin/python3.11"
142# As a final step configure the user (if env is defined)
143ARG USER
144ARG UID
145RUN if [ "${USER}" ]; then \
146  id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
147