Skip to content

Commit

Permalink
Replace usage of mirrorlist with baseurl (#307)
Browse files Browse the repository at this point in the history
Motivation:

We can't use the default mirrorlist anymore as it will fail and so fail
the docker build

Modifications:

Use baseurl with the correct vault

Result:

Docker image can be build again
  • Loading branch information
normanmaurer authored Jul 4, 2024
1 parent 50e9766 commit e01eea7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/Dockerfile.centos7
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM centos:7
FROM centos:7.6.1810

ENV SOURCE_DIR /root/source

RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror.centos.org\/centos\/$releasever\//baseurl=https:\/\/vault.centos.org\/\/7.6.1810\//g' /etc/yum.repos.d/CentOS-Base.repo

# install dependencies
RUN yum install -y \
bzip2 \
Expand Down

0 comments on commit e01eea7

Please sign in to comment.