112219839SDaniel P. Berrangé# THIS FILE WAS AUTO-GENERATED
212219839SDaniel P. Berrangé#
35f9efbbcSPeter Krempa#  $ lcitool dockerfile --layers all opensuse-leap-15 qemu
412219839SDaniel P. Berrangé#
512219839SDaniel P. Berrangé# https://gitlab.com/libvirt/libvirt-ci
612219839SDaniel P. Berrangé
70522910dSPhilippe Mathieu-DaudéFROM registry.opensuse.org/opensuse/leap:15.6
8b115ea3aSCho, Yu-Chen
912219839SDaniel P. BerrangéRUN zypper update -y && \
10aa54f5beSDaniel P. Berrangé    zypper addrepo -fc https://download.opensuse.org/update/leap/15.6/backports/openSUSE:Backports:SLE-15-SP6:Update.repo && \
1112219839SDaniel P. Berrangé    zypper install -y \
125606ce9eSDaniel P. Berrangé           Mesa-devel \
135606ce9eSDaniel P. Berrangé           alsa-lib-devel \
1412219839SDaniel P. Berrangé           bash \
15b115ea3aSCho, Yu-Chen           bc \
168fae3910SAnton Johansson           bison \
17b115ea3aSCho, Yu-Chen           brlapi-devel \
18b115ea3aSCho, Yu-Chen           bzip2 \
195606ce9eSDaniel P. Berrangé           ca-certificates \
205a487950SThomas Huth           ccache \
215606ce9eSDaniel P. Berrangé           clang \
225606ce9eSDaniel P. Berrangé           ctags \
23b115ea3aSCho, Yu-Chen           cyrus-sasl-devel \
245606ce9eSDaniel P. Berrangé           dbus-1 \
255606ce9eSDaniel P. Berrangé           diffutils \
265606ce9eSDaniel P. Berrangé           findutils \
278fae3910SAnton Johansson           flex \
287bef20d7SStefan Hajnoczi           fuse3-devel \
29b115ea3aSCho, Yu-Chen           gcc \
305606ce9eSDaniel P. Berrangé           gcovr \
31b115ea3aSCho, Yu-Chen           gettext-runtime \
32b115ea3aSCho, Yu-Chen           git \
33b115ea3aSCho, Yu-Chen           glib2-devel \
345606ce9eSDaniel P. Berrangé           glibc-locale \
355606ce9eSDaniel P. Berrangé           glibc-static \
36b115ea3aSCho, Yu-Chen           glusterfs-devel \
37b4be15a9SDaniel P. Berrangé           gtk-vnc-devel \
38b115ea3aSCho, Yu-Chen           gtk3-devel \
395606ce9eSDaniel P. Berrangé           hostname \
405606ce9eSDaniel P. Berrangé           jemalloc-devel \
4152dab556SDaniel P. Berrangé           libSDL2-devel \
4252dab556SDaniel P. Berrangé           libSDL2_image-devel \
43b115ea3aSCho, Yu-Chen           libaio-devel \
44a6f376e9SIlya Maximets           libasan8 \
45b115ea3aSCho, Yu-Chen           libattr-devel \
465606ce9eSDaniel P. Berrangé           libbpf-devel \
475606ce9eSDaniel P. Berrangé           libbz2-devel \
485606ce9eSDaniel P. Berrangé           libcacard-devel \
49b115ea3aSCho, Yu-Chen           libcap-ng-devel \
50*1ac32dc8SDorjoy Chowdhury           libcbor-devel \
51feb6cb93SDaniel P. Berrangé           libcmocka-devel \
525606ce9eSDaniel P. Berrangé           libcurl-devel \
535606ce9eSDaniel P. Berrangé           libdrm-devel \
54b115ea3aSCho, Yu-Chen           libepoxy-devel \
55b115ea3aSCho, Yu-Chen           libfdt-devel \
565606ce9eSDaniel P. Berrangé           libffi-devel \
575606ce9eSDaniel P. Berrangé           libgcrypt-devel \
5852dab556SDaniel P. Berrangé           libgnutls-devel \
59b115ea3aSCho, Yu-Chen           libiscsi-devel \
60b115ea3aSCho, Yu-Chen           libjpeg8-devel \
61feb6cb93SDaniel P. Berrangé           libjson-c-devel \
625606ce9eSDaniel P. Berrangé           libndctl-devel \
635606ce9eSDaniel P. Berrangé           libnettle-devel \
645606ce9eSDaniel P. Berrangé           libnfs-devel \
6552dab556SDaniel P. Berrangé           libnuma-devel \
6652dab556SDaniel P. Berrangé           libpixman-1-0-devel \
67b115ea3aSCho, Yu-Chen           libpmem-devel \
68b115ea3aSCho, Yu-Chen           libpng16-devel \
695606ce9eSDaniel P. Berrangé           libpulse-devel \
70b115ea3aSCho, Yu-Chen           librbd-devel \
71b115ea3aSCho, Yu-Chen           libseccomp-devel \
723d212b41SRichard W.M. Jones           libselinux-devel \
738bb49995SAlex Bennée           libslirp-devel \
7452dab556SDaniel P. Berrangé           libspice-server-devel \
75b115ea3aSCho, Yu-Chen           libssh-devel \
765606ce9eSDaniel P. Berrangé           libtasn1-devel \
775606ce9eSDaniel P. Berrangé           libubsan1 \
785606ce9eSDaniel P. Berrangé           libudev-devel \
7912219839SDaniel P. Berrangé           liburing-devel \
805606ce9eSDaniel P. Berrangé           libusb-1_0-devel \
815606ce9eSDaniel P. Berrangé           libzstd-devel \
825606ce9eSDaniel P. Berrangé           llvm \
835606ce9eSDaniel P. Berrangé           lttng-ust-devel \
84b115ea3aSCho, Yu-Chen           lzo-devel \
85b115ea3aSCho, Yu-Chen           make \
86da900078SAni Sinha           mtools \
875606ce9eSDaniel P. Berrangé           ncat \
88b115ea3aSCho, Yu-Chen           ncurses-devel \
89b115ea3aSCho, Yu-Chen           ninja \
905606ce9eSDaniel P. Berrangé           openssh \
915606ce9eSDaniel P. Berrangé           pam-devel \
9212219839SDaniel P. Berrangé           pcre-devel-static \
9362259d81SMarc-André Lureau           pipewire-devel \
945606ce9eSDaniel P. Berrangé           pkgconfig \
9574855083SFabiano Rosas           python311 \
96dcb8541bSPaolo Bonzini           python311-base \
97dcb8541bSPaolo Bonzini           python311-pip \
98dcb8541bSPaolo Bonzini           python311-setuptools \
99b115ea3aSCho, Yu-Chen           rdma-core-devel \
100548de8f8SDaniel P. Berrangé           rust \
101548de8f8SDaniel P. Berrangé           rust-bindgen \
1025606ce9eSDaniel P. Berrangé           sed \
103b115ea3aSCho, Yu-Chen           snappy-devel \
1048f4bcbcfSBrad Smith           sndio-devel \
105ab4c1361SAlex Bennée           socat \
1065606ce9eSDaniel P. Berrangé           sparse \
1075606ce9eSDaniel P. Berrangé           spice-protocol-devel \
1083e3df0d8SAlex Bennée           swtpm \
109b115ea3aSCho, Yu-Chen           systemd-devel \
110b115ea3aSCho, Yu-Chen           systemtap-sdt-devel \
111b115ea3aSCho, Yu-Chen           tar \
1125606ce9eSDaniel P. Berrangé           tesseract-ocr \
1135606ce9eSDaniel P. Berrangé           tesseract-ocr-traineddata-english \
114b115ea3aSCho, Yu-Chen           usbredir-devel \
1155606ce9eSDaniel P. Berrangé           util-linux \
116b115ea3aSCho, Yu-Chen           virglrenderer-devel \
117b115ea3aSCho, Yu-Chen           vte-devel \
1185606ce9eSDaniel P. Berrangé           which \
11952dab556SDaniel P. Berrangé           xen-devel \
120da900078SAni Sinha           xorriso \
12112219839SDaniel P. Berrangé           zlib-devel \
122bbe30763SAlex Bennée           zlib-devel-static \
123bbe30763SAlex Bennée           zstd && \
12412219839SDaniel P. Berrangé    zypper clean --all && \
1252355d18cSThomas Huth    rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
12612219839SDaniel P. Berrangé    rpm -qa | sort > /packages.txt && \
12712219839SDaniel P. Berrangé    mkdir -p /usr/libexec/ccache-wrappers && \
12812219839SDaniel P. Berrangé    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
12912219839SDaniel P. Berrangé    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
13012219839SDaniel P. Berrangé    ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
131b115ea3aSCho, Yu-Chen
132dcb8541bSPaolo BonziniRUN /usr/bin/pip3.11 install \
13332c06131SPaolo Bonzini                     PyYAML \
13407f0d326SPaolo Bonzini                     meson==1.5.0 \
13532c06131SPaolo Bonzini                     pillow \
13632c06131SPaolo Bonzini                     sphinx \
13732c06131SPaolo Bonzini                     sphinx-rtd-theme
13812219839SDaniel P. Berrangé
1398f4bcbcfSBrad SmithENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
14012219839SDaniel P. BerrangéENV LANG "en_US.UTF-8"
14112219839SDaniel P. BerrangéENV MAKE "/usr/bin/make"
14212219839SDaniel P. BerrangéENV NINJA "/usr/bin/ninja"
143dcb8541bSPaolo BonziniENV PYTHON "/usr/bin/python3.11"
1445b8bcf6bSAlex Bennée# As a final step configure the user (if env is defined)
1455b8bcf6bSAlex BennéeARG USER
1465b8bcf6bSAlex BennéeARG UID
1475b8bcf6bSAlex BennéeRUN if [ "${USER}" ]; then \
1485b8bcf6bSAlex Bennée  id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
149