mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
docker: Centos-8 dockerfile fix.
- Need to adapt repos to new centos-8 stream. Signed-off-by: Javier Garcia <javier.martin.garcia@ibm.com>
This commit is contained in:
parent
f06b9fee95
commit
d4793367e5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue