fix yum urls for vaulted CentOS 8
CentOS 8 has been vaulted. We need to fix the yum urls to continue to use it. A longer term fix is to migrate to a new/different base image, but is outside the scope of this fix which only addresses broken builds. Partial-Bug: 1995630 Signed-off-by: Scott Little <scott.little@windriver.com> Change-Id: Id8b32ee27a65f74c616b07e37f8f5f2914176264 (cherry picked from commit 9ac9f7878b5d9a9ddf88e5c1fb824bc5e57911c0) Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
This commit is contained in:
parent
ff64b3f3aa
commit
edc8f343d6
@ -1,4 +1,5 @@
|
||||
FROM centos:8 AS builder
|
||||
RUN sed -i -e 's%^mirrorlist=%#mirrorlist=%' -e 's%^#baseurl=http://mirror%baseurl=https://vault%' /etc/yum.repos.d/*repo
|
||||
RUN yum -y update && yum upgrade
|
||||
RUN yum -y install\
|
||||
net-snmp-libs \
|
||||
@ -13,6 +14,7 @@ RUN make
|
||||
|
||||
|
||||
FROM centos:8
|
||||
RUN sed -i -e 's%^mirrorlist=%#mirrorlist=%' -e 's%^#baseurl=http://mirror%baseurl=https://vault%' /etc/yum.repos.d/*repo
|
||||
RUN yum -y update && yum upgrade
|
||||
RUN yum -y install\
|
||||
net-snmp \
|
||||
|
@ -1,4 +1,5 @@
|
||||
FROM centos:8 AS builder
|
||||
RUN sed -i -e 's%^mirrorlist=%#mirrorlist=%' -e 's%^#baseurl=http://mirror%baseurl=https://vault%' /etc/yum.repos.d/*repo
|
||||
RUN yum -y update
|
||||
RUN yum -y upgrade
|
||||
RUN yum -y install \
|
||||
@ -14,6 +15,7 @@ WORKDIR /home/src/
|
||||
RUN make -f Makefile
|
||||
|
||||
FROM centos:8
|
||||
RUN sed -i -e 's%^mirrorlist=%#mirrorlist=%' -e 's%^#baseurl=http://mirror%baseurl=https://vault%' /etc/yum.repos.d/*repo
|
||||
RUN yum -y update
|
||||
RUN yum -y upgrade
|
||||
RUN yum -y install\
|
||||
|
Loading…
x
Reference in New Issue
Block a user