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

release-ci.DockerFile 构建镜像失败 #79

Closed
notinghere opened this issue Aug 19, 2024 · 1 comment
Closed

release-ci.DockerFile 构建镜像失败 #79

notinghere opened this issue Aug 19, 2024 · 1 comment

Comments

@notinghere
Copy link

  • 执行命令
    docker build -t spu:v1 -f release-ci.DockerFile .

  • 报错内容

Sending build context to Docker daemon 3.584 kB
Step 1/16 : FROM centos:centos7
 ---> eeb6ee3f44bd
Step 2/16 : RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo     && sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo     && sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
 ---> Using cache
 ---> 92a83badd403
Step 3/16 : RUN yum install -y centos-release-scl epel-release     && yum update -y     && yum clean all
 ---> Running in 6e2d29e80081

Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
Resolving Dependencies
--> Running transaction check
---> Package centos-release-scl.noarch 0:2-3.el7.centos will be installed
--> Processing Dependency: centos-release-scl-rh for package: centos-release-scl-2-3.el7.centos.noarch
---> Package epel-release.noarch 0:7-11 will be installed
--> Running transaction check
---> Package centos-release-scl-rh.noarch 0:2-3.el7.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                    Arch        Version               Repository   Size
================================================================================
Installing:
 centos-release-scl         noarch      2-3.el7.centos        extras       12 k
 epel-release               noarch      7-11                  extras       15 k
Installing for dependencies:
 centos-release-scl-rh      noarch      2-3.el7.centos        extras       12 k

Transaction Summary
================================================================================
Install  2 Packages (+1 Dependent package)

Total download size: 39 k
Installed size: 63 k
Downloading packages:
warning: /var/cache/yum/x86_64/7/extras/packages/centos-release-scl-rh-2-3.el7.centos.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for centos-release-scl-rh-2-3.el7.centos.noarch.rpm is not installed
--------------------------------------------------------------------------------
Total                                               20 kB/s |  39 kB  00:01
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-9.2009.0.el7.centos.x86_64 (@CentOS)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : centos-release-scl-rh-2-3.el7.centos.noarch                  1/3
  Installing : centos-release-scl-2-3.el7.centos.noarch                     2/3
  Installing : epel-release-7-11.noarch                                     3/3
  Verifying  : centos-release-scl-2-3.el7.centos.noarch                     1/3
  Verifying  : centos-release-scl-rh-2-3.el7.centos.noarch                  2/3
  Verifying  : epel-release-7-11.noarch                                     3/3

Installed:
  centos-release-scl.noarch 0:2-3.el7.centos     epel-release.noarch 0:7-11

Dependency Installed:
  centos-release-scl-rh.noarch 0:2-3.el7.centos

Complete!
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org?arch=x86_64&release=7&repo=sclo-rh error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"


 One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: centos-sclo-rh/x86_64
The command '/bin/sh -c yum install -y centos-release-scl epel-release     && yum update -y     && yum clean all' returned a non-zero code: 1


@secretflow secretflow deleted a comment from wangzul Aug 20, 2024
@secretflow secretflow deleted a comment from wangzul Aug 20, 2024
@anakinxc
Copy link
Contributor

Hi @notinghere

Fixed, plz try again.

Thanks

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

No branches or pull requests

2 participants