Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS 7 Deprecation & Possibility to upgrade base image #2149

Closed
Owen-CH-Leung opened this issue Jul 19, 2024 · 1 comment
Closed

CentOS 7 Deprecation & Possibility to upgrade base image #2149

Owen-CH-Leung opened this issue Jul 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Owen-CH-Leung
Copy link
Contributor

Maturin use quay.io/pypa/manylinux2014_x86_64 as its base image, which is a CentOS 7 image according to the README of the manylinux repo.

https://github.com/PyO3/maturin/blob/main/Dockerfile#L2C6-L2C39
https://github.com/pypa/manylinux

However, CentOS7 has reached EOL this year on June 30. See this link%20on%20June%2030%2C%202024.) for details:

This has resulted in some mirrors defined under mirrorlist of /etc/yum.repos.d not available to yum. As an example, here's an output of running a yum update:

~ docker run --entrypoint "/bin/bash" -it ghcr.io/pyo3/maturin

[root@a9c63abb5447 io]# yum update
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=aarch64&repo=os&infra=container error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Could not retrieve mirrorlist http://mirrorlist.centos.org?arch=aarch64&release=7&repo=sclo-rh error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=aarch64&repo=extras&infra=container error was

While most yum commands eventually are able to resolve the dependencies & install the required packages, I think this could be a supply chain risk to base the maturin image on an EOL image. I don't have any concrete ideas in mind to solve this, but maybe upgrading the base image to a more updated one could be a solution ? (e.g. maybe quay.io/pypa/manylinux_2_28_x86_64 ? )

@Owen-CH-Leung Owen-CH-Leung added the enhancement New feature or request label Jul 19, 2024
@messense
Copy link
Member

Just need to release a new version to pull in pypa/manylinux#1628, for the moment you can use the main tag instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants