tests/docker: auto-generate ubuntu2004.docker with lcitool
This commit is best examined using the "-b" option to diff. Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20211215141949.3512719-12-berrange@redhat.com> Message-Id: <20220105135009.1584676-12-alex.bennee@linaro.org>
This commit is contained in:
parent
e482191643
commit
bb317c3258
@ -1,5 +1,17 @@
|
|||||||
|
# THIS FILE WAS AUTO-GENERATED
|
||||||
|
#
|
||||||
|
# $ lcitool dockerfile ubuntu-2004 qemu
|
||||||
|
#
|
||||||
|
# https://gitlab.com/libvirt/libvirt-ci
|
||||||
|
|
||||||
FROM docker.io/library/ubuntu:20.04
|
FROM docker.io/library/ubuntu:20.04
|
||||||
ENV PACKAGES \
|
|
||||||
|
RUN export DEBIAN_FRONTEND=noninteractive && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y eatmydata && \
|
||||||
|
eatmydata apt-get dist-upgrade -y && \
|
||||||
|
eatmydata apt-get install --no-install-recommends -y \
|
||||||
|
bash \
|
||||||
bc \
|
bc \
|
||||||
bsdmainutils \
|
bsdmainutils \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
@ -50,6 +62,7 @@ ENV PACKAGES \
|
|||||||
libnfs-dev \
|
libnfs-dev \
|
||||||
libnuma-dev \
|
libnuma-dev \
|
||||||
libpam0g-dev \
|
libpam0g-dev \
|
||||||
|
libpcre2-dev \
|
||||||
libpixman-1-dev \
|
libpixman-1-dev \
|
||||||
libpmem-dev \
|
libpmem-dev \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
@ -60,7 +73,7 @@ ENV PACKAGES \
|
|||||||
libsdl2-dev \
|
libsdl2-dev \
|
||||||
libsdl2-image-dev \
|
libsdl2-image-dev \
|
||||||
libseccomp-dev \
|
libseccomp-dev \
|
||||||
libselinux-dev \
|
libselinux1-dev \
|
||||||
libslirp-dev \
|
libslirp-dev \
|
||||||
libsnappy-dev \
|
libsnappy-dev \
|
||||||
libspice-protocol-dev \
|
libspice-protocol-dev \
|
||||||
@ -109,11 +122,27 @@ ENV PACKAGES \
|
|||||||
tesseract-ocr-eng \
|
tesseract-ocr-eng \
|
||||||
texinfo \
|
texinfo \
|
||||||
xfslibs-dev \
|
xfslibs-dev \
|
||||||
zlib1g-dev
|
zlib1g-dev && \
|
||||||
RUN apt-get update && \
|
eatmydata apt-get autoremove -y && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES
|
eatmydata apt-get autoclean -y && \
|
||||||
RUN dpkg -l $PACKAGES | sort > /packages.txt
|
sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
|
||||||
|
dpkg-reconfigure locales && \
|
||||||
|
dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
|
||||||
|
mkdir -p /usr/libexec/ccache-wrappers && \
|
||||||
|
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
|
||||||
|
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
|
||||||
|
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
|
||||||
|
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
|
||||||
|
ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
|
||||||
|
|
||||||
|
RUN pip3 install \
|
||||||
|
meson==0.56.0
|
||||||
|
|
||||||
|
ENV LANG "en_US.UTF-8"
|
||||||
|
ENV MAKE "/usr/bin/make"
|
||||||
|
ENV NINJA "/usr/bin/ninja"
|
||||||
|
ENV PYTHON "/usr/bin/python3"
|
||||||
|
ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
|
||||||
# Apply patch https://reviews.llvm.org/D75820
|
# Apply patch https://reviews.llvm.org/D75820
|
||||||
# This is required for TSan in clang-10 to compile with QEMU.
|
# This is required for TSan in clang-10 to compile with QEMU.
|
||||||
RUN sed -i 's/^const/static const/g' /usr/lib/llvm-10/lib/clang/10.0.0/include/sanitizer/tsan_interface.h
|
RUN sed -i 's/^const/static const/g' /usr/lib/llvm-10/lib/clang/10.0.0/include/sanitizer/tsan_interface.h
|
||||||
|
@ -65,12 +65,19 @@ ubuntu1804_skipssh = [
|
|||||||
"ENV QEMU_CONFIGURE_OPTS --disable-libssh\n"
|
"ENV QEMU_CONFIGURE_OPTS --disable-libssh\n"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
ubuntu2004_tsanhack = [
|
||||||
|
"# Apply patch https://reviews.llvm.org/D75820\n",
|
||||||
|
"# This is required for TSan in clang-10 to compile with QEMU.\n",
|
||||||
|
"RUN sed -i 's/^const/static const/g' /usr/lib/llvm-10/lib/clang/10.0.0/include/sanitizer/tsan_interface.h\n"
|
||||||
|
]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
generate_dockerfile("centos8", "centos-8")
|
generate_dockerfile("centos8", "centos-8")
|
||||||
generate_dockerfile("fedora", "fedora-35")
|
generate_dockerfile("fedora", "fedora-35")
|
||||||
generate_dockerfile("ubuntu1804", "ubuntu-1804",
|
generate_dockerfile("ubuntu1804", "ubuntu-1804",
|
||||||
trailer="".join(ubuntu1804_skipssh))
|
trailer="".join(ubuntu1804_skipssh))
|
||||||
|
generate_dockerfile("ubuntu2004", "ubuntu-2004",
|
||||||
|
trailer="".join(ubuntu2004_tsanhack))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
print(str(ex), file=sys.stderr)
|
print(str(ex), file=sys.stderr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user