Commit 722fe5e7 authored by Raphael Defosseux's avatar Raphael Defosseux

fix(build): allowing more explicit attempts for epel download

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@openairinterface.org>
parent 4c5b9799
...@@ -131,13 +131,12 @@ check_supported_distribution() { ...@@ -131,13 +131,12 @@ check_supported_distribution() {
"ubuntu20.04") return 0 ;; "ubuntu20.04") return 0 ;;
"ubuntu22.04") return 0 ;; "ubuntu22.04") return 0 ;;
"rhel8") return 0 ;; "rhel8") return 0 ;;
"rhel8.2") return 0 ;; "rhel8.2") return 0 ;;
"rhel8.3") return 0 ;; "rhel8.3") return 0 ;;
"rhel8.4") return 0 ;; "rhel8.4") return 0 ;;
"rhel8.5") return 0 ;; "rhel8.5") return 0 ;;
"rhel8.6") return 0 ;; "rhel8.6") return 0 ;;
"rhel8.7") return 0 ;; "rhel8.7") return 0 ;;
#"centos7") return 0 ;;
esac esac
return 1 return 1
} }
...@@ -297,7 +296,10 @@ check_enable_epel_repos() { ...@@ -297,7 +296,10 @@ check_enable_epel_repos() {
echo "EPEL repos already present. Good." echo "EPEL repos already present. Good."
else else
echo "EPEL repos not present. Installing them." echo "EPEL repos not present. Installing them."
$SUDO $INSTALLER install $OPTION https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm wget --tries=4 --retry-connrefused --wait=8 \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
$SUDO $INSTALLER install $OPTION epel-release-latest-7.noarch.rpm
rm -f epel-release-latest-7.noarch.rpm
fi fi
fi fi
} }
......
...@@ -47,6 +47,7 @@ RUN rm -f /etc/rhsm-host && \ ...@@ -47,6 +47,7 @@ RUN rm -f /etc/rhsm-host && \
git \ git \
diffutils \ diffutils \
libasan \ libasan \
wget \
file && \ file && \
echo "/usr/local/lib" > /etc/ld.so.conf.d/local-lib.conf && \ echo "/usr/local/lib" > /etc/ld.so.conf.d/local-lib.conf && \
echo "/usr/local/lib64" >> /etc/ld.so.conf.d/local-lib.conf echo "/usr/local/lib64" >> /etc/ld.so.conf.d/local-lib.conf
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment