replace deprecated centos7 repo

This commit is contained in:
Lili Deng 2024-07-08 09:59:13 +08:00 коммит произвёл LiliDeng
Родитель 303c0a32c5
Коммит 9f44ab98d9
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -300,7 +300,7 @@ class Gpu(Feature):
if release == "7":
# vulkan-filesystem is required by CUDA in CentOS 7.x
self._node.os._install_package_from_url(
"http://mirror.centos.org/centos/7/os/x86_64/Packages/"
"https://vault.centos.org/centos/7/os/x86_64/Packages/"
"vulkan-filesystem-1.1.97.0-1.el7.noarch.rpm"
)

Просмотреть файл

@ -127,15 +127,15 @@ class Docker(Tool):
repo_name="docker-ce.repo",
)
self.node.os.add_repository(
repo="http://mirror.centos.org/centos/7/extras/x86_64",
repo="https://vault.centos.org/centos/7/extras/x86_64",
repo_name="Centos extras",
)
self.node.os.add_repository(
repo="http://mirror.centos.org/centos/7/os/x86_64",
repo="https://vault.centos.org/centos/7/os/x86_64",
repo_name="Centos extras",
)
gpg_donwload_path = self.node.tools[Wget].get(
"http://mirror.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7",
"https://vault.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7",
)
self.node.execute(f"rpm --import {gpg_donwload_path}", sudo=True)