From 7d79bbdb664d93f55a6dd960b4d98e6683fd3a61 Mon Sep 17 00:00:00 2001 From: isi-adas Date: Tue, 13 Aug 2024 00:38:25 +0000 Subject: [PATCH] Yum clean and update before install --- buildwheel/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildwheel/Dockerfile b/buildwheel/Dockerfile index 24efe85..3a9e779 100644 --- a/buildwheel/Dockerfile +++ b/buildwheel/Dockerfile @@ -1,6 +1,8 @@ FROM quay.io/pypa/manylinux2010_x86_64 COPY . /src/pike -RUN yum install -y krb5-devel krb5-workstation python27 && \ +RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \ + sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* && \ + yum install -y krb5-devel krb5-workstation python27 && \ source /opt/rh/python27/enable && \ python2.7 -m pip install -U 'pip<21' && \ python2.7 -m pip install build