Commit 9ee5859 1 parent 2da5fab commit 9ee5859 Copy full SHA for 9ee5859
File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,19 @@ FROM centos:7
2
2
3
3
LABEL maintainer="cncf-falco-dev@lists.cncf.io"
4
4
5
- RUN yum -y install centos-release-scl && \
6
- yum -y install gcc \
5
+ # Fix broken mirrors - centos:7 eol
6
+ RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo; \
7
+ sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo; \
8
+ sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo
9
+
10
+ RUN yum -y install centos-release-scl
11
+
12
+ # fix broken mirrors (again)
13
+ RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo; \
14
+ sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo; \
15
+ sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo
16
+
17
+ RUN yum -y install gcc \
7
18
llvm-toolset-7.0 \
8
19
bash-completion \
9
20
bc \
You can’t perform that action at this time.
0 commit comments