[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 18/23] tests/docker: auto-generate centos7 with lcitool
From: |
Daniel P . Berrangé |
Subject: |
[PATCH 18/23] tests/docker: auto-generate centos7 with lcitool |
Date: |
Tue, 1 Dec 2020 17:18:20 +0000 |
This commit is best examined using the "-b" option to diff.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
tests/docker/dockerfiles/centos7.docker | 213 +++++++++++++-----------
tests/docker/dockerfiles/refresh | 2 +-
2 files changed, 117 insertions(+), 98 deletions(-)
diff --git a/tests/docker/dockerfiles/centos7.docker
b/tests/docker/dockerfiles/centos7.docker
index 8750395bbe..2bdb268076 100644
--- a/tests/docker/dockerfiles/centos7.docker
+++ b/tests/docker/dockerfiles/centos7.docker
@@ -1,100 +1,119 @@
+# THIS FILE IS AUTO-GENERATED
+#
+# $ lcitool dockerfile centos-7 qemu
+#
+#
https://gitlab.com/berrange/libvirt-ci/-/commit/5ae4c04258978fae40be7113ac33587d71fe3c4f
+
FROM registry.centos.org/centos:7
-RUN yum install -y epel-release centos-release-xen-48
-RUN yum -y update
+RUN echo 'skip_missing_names_on_install=0' >> /etc/yum.conf && \
+ yum install -y epel-release && \
+ yum install -y centos-release-xen-48 && \
+ yum update -y && \
+ yum install -y \
+ SDL2-devel \
+ alsa-lib-devel \
+ bc \
+ brlapi-devel \
+ bzip2 \
+ bzip2-devel \
+ ca-certificates \
+ capstone-devel \
+ ccache \
+ clang \
+ cyrus-sasl-devel \
+ daxctl-devel \
+ dbus \
+ device-mapper-multipath-devel \
+ diffutils \
+ findutils \
+ gcc \
+ gcc-c++ \
+ genisoimage \
+ gettext \
+ git \
+ glib2-devel \
+ glibc-common \
+ glusterfs-api-devel \
+ gnutls-devel \
+ gtk3-devel \
+ hostname \
+ libaio-devel \
+ libasan \
+ libattr-devel \
+ libcacard-devel \
+ libcap-ng-devel \
+ libcurl-devel \
+ libdrm-devel \
+ libepoxy-devel \
+ libfdt-devel \
+ libgcrypt-devel \
+ libiscsi-devel \
+ libjpeg-devel \
+ libnfs-devel \
+ libpmem-devel \
+ libpng-devel \
+ librbd1-devel \
+ libseccomp-devel \
+ libssh-devel \
+ libtasn1-devel \
+ libudev-devel \
+ libusbx-devel \
+ libxml2-devel \
+ libzstd-devel \
+ lzo-devel \
+ make \
+ mesa-libgbm-devel \
+ ncurses-devel \
+ nettle-devel \
+ ninja-build \
+ nmap-ncat \
+ numactl-devel \
+ openssh-clients \
+ pam-devel \
+ perl \
+ perl-Test-Harness \
+ pixman-devel \
+ pkgconfig \
+ pulseaudio-libs-devel \
+ python3 \
+ python3-PyYAML \
+ python3-numpy \
+ python3-pillow \
+ python3-pip \
+ python3-setuptools \
+ python3-sphinx \
+ python3-virtualenv \
+ python3-wheel \
+ rdma-core-devel \
+ rpm \
+ snappy-devel \
+ sparse \
+ spice-protocol \
+ spice-server-devel \
+ systemd-devel \
+ systemtap-sdt-devel \
+ tar \
+ texinfo \
+ usbredir-devel \
+ vim-minimal \
+ vte291-devel \
+ which \
+ xen-devel \
+ xfsprogs-devel \
+ zlib-devel && \
+ yum autoremove -y && \
+ yum clean all -y && \
+ rpm -qa | sort > /packages.txt && \
+ mkdir -p /usr/libexec/ccache-wrappers && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/$(basename /usr/bin/gcc)
+
+RUN pip3 install \
+ meson==0.54.0
-# Please keep this list sorted alphabetically
-ENV PACKAGES \
- SDL2-devel \
- alsa-lib-devel \
- bc \
- brlapi-devel \
- bzip2 \
- bzip2-devel \
- ca-certificates \
- capstone-devel \
- ccache \
- clang \
- cyrus-sasl-devel \
- daxctl-devel \
- dbus \
- device-mapper-multipath-devel \
- diffutils \
- findutils \
- gcc \
- gcc-c++ \
- genisoimage \
- gettext \
- git \
- glib2-devel \
- glibc-common \
- glusterfs-api-devel \
- gnutls-devel \
- gtk3-devel \
- hostname \
- libaio-devel \
- libasan \
- libattr-devel \
- libcacard-devel \
- libcap-ng-devel \
- libcurl-devel \
- libdrm-devel \
- libepoxy-devel \
- libfdt-devel \
- libgcrypt-devel \
- libiscsi-devel \
- libjpeg-devel \
- libnfs-devel \
- libpmem-devel \
- libpng-devel \
- librbd1-devel \
- libseccomp-devel \
- libssh-devel \
- libtasn1-devel \
- libudev-devel \
- libusbx-devel \
- libxml2-devel \
- libzstd-devel \
- lzo-devel \
- make \
- mesa-libgbm-devel \
- ncurses-devel \
- nettle-devel \
- ninja-build \
- nmap-ncat \
- numactl-devel \
- openssh-clients \
- pam-devel \
- perl \
- perl-Test-Harness \
- pixman-devel \
- pkgconfig \
- pulseaudio-libs-devel \
- python3 \
- python3-PyYAML \
- python3-numpy \
- python3-pillow \
- python3-pip \
- python3-setuptools \
- python3-sphinx \
- python3-virtualenv \
- python3-wheel \
- rdma-core-devel \
- rpm \
- snappy-devel \
- sparse \
- spice-protocol \
- spice-server-devel \
- systemd-devel \
- systemtap-sdt-devel \
- tar \
- texinfo \
- usbredir-devel \
- vim-minimal \
- vte291-devel \
- which \
- xen-devel \
- xfsprogs-devel \
- zlib-devel
-RUN yum install -y $PACKAGES
-RUN rpm -q $PACKAGES | sort > /packages.txt
+ENV LANG "en_US.UTF-8"
+ENV MAKE "/usr/bin/make"
+ENV NINJA "/usr/bin/ninja-build"
+ENV PYTHON "/usr/bin/python3"
+ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
diff --git a/tests/docker/dockerfiles/refresh b/tests/docker/dockerfiles/refresh
index b1d99963e9..a6f0adee81 100755
--- a/tests/docker/dockerfiles/refresh
+++ b/tests/docker/dockerfiles/refresh
@@ -48,6 +48,6 @@ def generate_image(filename, host, cross=None, trailer=None):
atomic_write(filename, content)
try:
- pass
+ generate_image("centos7.docker", "centos-7")
except Exception as ex:
print(str(ex), file=sys.stderr)
--
2.28.0
- [PATCH 09/23] tests/docker: fix mistakes in fedora package list, (continued)
- [PATCH 09/23] tests/docker: fix mistakes in fedora package list, Daniel P . Berrangé, 2020/12/01
- [PATCH 10/23] tests/docker: fix mistakes in ubuntu package lists, Daniel P . Berrangé, 2020/12/01
- [PATCH 13/23] tests/docker: expand centos7 package list, Daniel P . Berrangé, 2020/12/01
- [PATCH 11/23] tests/docker: remove mingw packages from Fedora, Daniel P . Berrangé, 2020/12/01
- [PATCH 14/23] tests/docker: expand centos8 package list, Daniel P . Berrangé, 2020/12/01
- [PATCH 15/23] tests/docker: expand fedora package list, Daniel P . Berrangé, 2020/12/01
- [PATCH 17/23] tests/docker: expand ubuntu2004 package list, Daniel P . Berrangé, 2020/12/01
- [PATCH 12/23] tests/docker: add script for automating container refresh, Daniel P . Berrangé, 2020/12/01
- [PATCH 16/23] tests/docker: expand ubuntu1804 package list, Daniel P . Berrangé, 2020/12/01
- [PATCH 18/23] tests/docker: auto-generate centos7 with lcitool,
Daniel P . Berrangé <=
- [PATCH 19/23] tests/docker: auto-generate centos8 with lcitool, Daniel P . Berrangé, 2020/12/01
- [PATCH 20/23] tests/docker: auto-generate fedora with lcitool, Daniel P . Berrangé, 2020/12/01
- [PATCH 21/23] tests/docker: auto-generate ubuntu1804 with lcitool, Daniel P . Berrangé, 2020/12/01
- [PATCH 22/23] tests/docker: auto-generate ubuntu2004 with lcitool, Daniel P . Berrangé, 2020/12/01
- [PATCH 23/23] tests/docker: remove ubuntu container, Daniel P . Berrangé, 2020/12/01
- Re: [PATCH 00/23] tests/docker: start using libvirt-ci's "lcitool" for dockerfiles, Kashyap Chamarthy, 2020/12/01