generated from falcosecurity/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docker): fixed centos7 builder because of EoL.
Signed-off-by: Federico Di Pierro <[email protected]>
- Loading branch information
Showing
1 changed file
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,19 @@ FROM centos:7 | |
|
||
LABEL maintainer="[email protected]" | ||
|
||
RUN yum -y install centos-release-scl && \ | ||
yum -y install gcc \ | ||
# Fix broken mirrors - centos:7 eol | ||
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo; \ | ||
sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo; \ | ||
sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo | ||
|
||
RUN yum -y install centos-release-scl | ||
|
||
# fix broken mirrors (again) | ||
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo; \ | ||
sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo; \ | ||
sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo | ||
|
||
RUN yum -y install gcc \ | ||
llvm-toolset-7.0 \ | ||
bash-completion \ | ||
bc \ | ||
|