Closed frewsxcv closed 7 years ago
The repositories seem to be archived at http://vault.centos.org/, so we currently use the following to make things work again:
RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
RUN sed -i 's/mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo
RUN sed -i 's/#\(baseurl.*\)mirror.centos.org/\1vault.centos.org/' /etc/yum.repos.d/*.repo
cc CentOS image maintainer: @jperrin. Will there be a "bump" to the centos:5
and centos:5.11
images to make them work with vault.centos.org
? Or are they going to be dropped now that it is EOL?
It will be dropped now that it's EOL.
@jperrin thanks for the info. To clarify, does that mean that commands like FROM centos:5
will just stop working?
If so, out of curiosity, we use centos:5
to get a super old glib to produce "maximally compatible" libraries. Do you know of an alternate method of doing so?
The glib in centos:6
should be old enough to get you a build compatible with everything sane.
My preference would be for the centos:5
and centos:5.11
containers to be removed, but for the moment all we've done is archive the repos to vault. You could simply drop a custom repository file in place that points to vault for your installs, rather than the default mirrorlist.
This would add a new line to the dockerfile, and another layer to the container, but shouldn't be that big a change.
Looks like CentOS 5 things are gone from the vault now.
Disregard last comment. Turns out we were looking at the wrong vault URL. http://vault.centos.org/5.11/ still has contents.
@TimNN The last line there seems to point to non-existing things. I think these lines should be:
sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
sed -i 's/mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo
sed -i 's|#baseurl=http://mirror.centos.org/centos/$releasever|baseurl=http://vault.centos.org/5.11|' /etc/yum.repos.d/*.repo
EDIT: fixed the last line
See also https://github.com/docker-library/official-images/pull/2865 where CentOS 5 was removed from the list of supported versions (although tags for using it are still available currently).
Hello, just a small notification: I had opened
https://github.com/CentOS/sig-cloud-instance-images/issues/79
raising exactly the same issue, by following the "Where to file issues" link; there was no update to such issue. Did I misunderstand the link, or should it stand corrected?
https://wiki.centos.org/FAQ/General#head-fe8a0be91ee3e7dea812e8694491e1dde5b75e6d
Not sure what the policy is here for EOL distros.
Attempts to use the hosted repositories fail: