summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorJavier Garcia <javier.martin.garcia@ibm.com>2022-03-10 16:30:48 +0100
committerJavier Garcia <javier.martin.garcia@ibm.com>2022-03-29 15:08:29 +0200
commitd4793367e5f69794e9e9515da6d0ecf0de439046 (patch)
tree38f3d0ee9a0fc302a325aeebcd878a9a737c446c /docker
parentMerge pull request #10882 from opensourcerouting/pim6-txrx (diff)
downloadfrr-d4793367e5f69794e9e9515da6d0ecf0de439046.tar.xz
frr-d4793367e5f69794e9e9515da6d0ecf0de439046.zip
docker: Centos-8 dockerfile fix.
- Need to adapt repos to new centos-8 stream. Signed-off-by: Javier Garcia <javier.martin.garcia@ibm.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/centos-8/Dockerfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/centos-8/Dockerfile b/docker/centos-8/Dockerfile
index 71378c245..df095edcd 100644
--- a/docker/centos-8/Dockerfile
+++ b/docker/centos-8/Dockerfile
@@ -1,7 +1,11 @@
# This stage builds an rpm from the source
FROM centos:centos8 as centos-8-builder
+RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
+RUN sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
+
RUN dnf install --enablerepo=powertools -y rpm-build git autoconf pcre-devel \
+ systemd-devel \
automake libtool make readline-devel texinfo net-snmp-devel pkgconfig \
groff pkgconfig json-c-devel pam-devel bison flex python3-pytest \
c-ares-devel python3-devel python3-sphinx libcap-devel platform-python-devel \
@@ -32,6 +36,10 @@ RUN echo '%_smp_mflags %( echo "-j$(/usr/bin/getconf _NPROCESSORS_ONLN)"; )' >>
# This stage installs frr from the rpm
FROM centos:centos8
+
+RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-* \
+ && sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
+
RUN mkdir -p /pkgs/rpm \
&& yum install -y https://ci1.netdef.org/artifact/LIBYANG-LIBYANGV2/shared/build-2/CentOS-8-x86_64-Packages/libyang2-2.0.0.10.g2eb910e4-1.el8.x86_64.rpm \
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-0.7.0-1.el7.centos.x86_64.rpm