Skip to content

Commit

Permalink
Replace usage of mirrorlist with baseurl (#250)
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 5, 2024
1 parent e7a8750 commit 8b7f7d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docker/Dockerfile.centos7
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM centos:7.9.2009
FROM centos:7.6.1810

ARG gcc_version=10.2-2020.11
ENV GCC_VERSION $gcc_version
ENV MAVEN_VERSION 3.9.1
ENV SOURCE_DIR /root/source

# Update as we need to use the vault now.
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 requirements
RUN yum install -y \
apr-devel \
Expand Down
5 changes: 4 additions & 1 deletion docker/Dockerfile.centos7arm64v8
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM arm64v8/centos:7.9.2009
FROM arm64v8/centos:7.6.1810

ENV MAVEN_VERSION 3.9.1

# Update as we need to use the vault now.
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 requirements
RUN yum install -y \
apr-devel \
Expand Down

0 comments on commit 8b7f7d9

Please sign in to comment.