Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

On March 31, 2017, support of CentOS 5 has ended.
And therefore, we cannot perform `yum` on CentOS 5 official images because yum repositories for CentOS 5 is deleted.
This image rewrites yum repository urls in /etc/yum.repos.d to vault.centos.org.
Since vault.centos.org forces https over tlsv3 which centos 511 doesn't support, use a pure http mirror that does not (yet) force https
This image rewrites yum repository urls in /etc/yum.repos.d to http://linuxsoft.cern.ch/centos-vault/5.11/
You can use this image as drop-in replacement of official `centos:5` (`centos:5.11`).
12 changes: 7 additions & 5 deletions yum.repos.d/CentOS-Base.repo
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,39 @@
# CentOS-Base.repo
#
# Since official repositories are gone, use vault.centos.org instead.
# Since vault.centos.org forces https over tlsv3 which centos 511 doesn't support
# use a pure http mirror that does not (yet) force https
#
#

[base]
name=CentOS-5 - Base
baseurl=http://vault.centos.org/5.11/os/$basearch/
baseurl=http://vault.epel.cloud/5.11/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[updates]
name=CentOS-5 - Updates
baseurl=http://vault.centos.org/5.11/updates/$basearch/
baseurl=http://vault.epel.cloud/5.11/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[extras]
name=CentOS-5 - Extras
baseurl=http://vault.centos.org/5.11/extras/$basearch/
baseurl=http://vault.epel.cloud/5.11/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[centosplus]
name=CentOS-5 - Plus
baseurl=http://vault.centos.org/5.11/centosplus/$basearch/
baseurl=http://vault.epel.cloud/5.11/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[contrib]
name=CentOS-5 - Contrib
baseurl=http://vault.centos.org/5.11/contrib/$basearch/
baseurl=http://vault.epel.cloud/5.11/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
2 changes: 1 addition & 1 deletion yum.repos.d/CentOS-fasttrack.repo
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[fasttrack]
name=CentOS-5 - fasttrack
baseurl=http://vault.centos.org/5.11/fasttrack/$basearch/
baseurl=http://vault.epel.cloud/5.11/fasttrack/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
29 changes: 29 additions & 0 deletions yum.repos.d/epel.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[epel]
name=Extra Packages for Enterprise Linux 5 - $basearch
#baseurl=http://mirrors.kernel.org/fedora-buffet/archive/epel/5/$basearch
baseurl=http://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org/epel/5/$basearch
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enabling epel repo make this Docker image behaving differently than original centos:5.11, so I cannot accept this repo file as is.
At least we should disable this repo by default, to keep original behavior.

Suggested change
enabled=1
enabled=0

gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

#[epel-debuginfo]
#name=Extra Packages for Enterprise Linux 5 - $basearch - Debug
##baseurl=http://mirrors.kernel.org/fedora-buffet/archive/epel/5/x86_64/$basearch/debug
#baseurl=http://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org/epel/5/x86_64/$basearch/debug
##mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
#failovermethod=priority
#enabled=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
#gpgcheck=1
#
[epel-source]
name=Extra Packages for Enterprise Linux 5 - $basearch - Source
#baseurl=http://mirrors.kernel.org/fedora-buffet/archive/epel/5/SRPMS
baseurl=http://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org/epel/5/SRPMS
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
4 changes: 2 additions & 2 deletions yum.repos.d/libselinux.repo
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

[libselinux]
name=CentOS-5 - libselinux
baseurl=http://vault.centos.org/5.11/centosplus/$basearch/
baseurl=http://vault.epel.cloud/5.11/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
includepkgs=libselinux*
includepkgs=libselinux*