[jenkins-ci PATCH] guests: Install EPEL on CentOS 7 container

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since commit d63d6a59cc we're installing EPEL on CentOS7 in order to
have both "ninja" and "python36-*" packages in the system.

However, we've forgot to add the very code to the lcitool so the
containers would also have EPEL release installed.

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 guests/lcitool | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/guests/lcitool b/guests/lcitool
index a3ef137..0d11d37 100755
--- a/guests/lcitool
+++ b/guests/lcitool
@@ -714,6 +714,14 @@ class Application:
                         {package_manager} autoremove -y && \\
                         {package_manager} clean all -y
                 """).format(**varmap))
+            else if os_name == "CentOS" and os_version == "7":
+                sys.stdout.write(textwrap.dedent("""
+                    RUN {package_manager} update -y && \\
+                        {package_manager} install -y epel-release && \\
+                        {package_manager} install -y {pkgs} && \\
+                        {package_manager} autoremove -y && \\
+                        {package_manager} clean all -y
+                """).format(**varmap))
             else:
                 sys.stdout.write(textwrap.dedent("""
                     RUN {package_manager} update -y && \\
-- 
2.23.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux