Skip to content

[AURON#1407] Fix CentOS 7 Dockerfile build failure.#1408

Merged
richox merged 3 commits intoapache:masterfrom
slfan1989:auron-1407
Oct 9, 2025
Merged

[AURON#1407] Fix CentOS 7 Dockerfile build failure.#1408
richox merged 3 commits intoapache:masterfrom
slfan1989:auron-1407

Conversation

@slfan1989
Copy link
Contributor

@slfan1989 slfan1989 commented Oct 6, 2025

Which issue does this PR close?

Closes #1407.

Rationale for this change

  • When executing the following command:
./auron-build.sh --docker true --clean true --skiptests true --release 
--sparkver 3.5 --scalaver 2.12 --celeborn 0.5 --uniffle 0.9 --paimon 1.2
  • The build process stops during the Docker stage because yum cannot access valid repository sources, causing dependency installation to fail.

The following error occurred:

[build-release 11/18] RUN yum install -y libzip unzip openssl-devel:
0.721 Loaded plugins: fastestmirror, ovl
0.779 Loading mirror speeds from cached hostfile
1.563
1.563
1.563  One of the configured repositories failed (Unknown),
1.563  and yum doesn't have enough cached data to continue. At this point the only
1.563  safe thing yum can do is fail. There are a few ways to work "fix" this:
1.563
1.563      1. Contact the upstream for the repository and get them to fix the problem.
1.563
1.563      2. Reconfigure the baseurl/etc. for the repository, to point to a working
1.563         upstream. This is most often useful if you are using a newer
1.563         distribution release than is supported by the repository (and the
1.563         packages for the previous distribution release still work).
1.563
1.563      3. Run the command with the repository temporarily disabled
1.563             yum --disablerepo=<repoid> ...
1.563
1.563      4. Disable the repository permanently, so yum won't use it by default. Yum
1.563         will then just ignore the repository until you permanently enable it
1.563         again or use --enablerepo for temporary usage:
1.563
1.563             yum-config-manager --disable <repoid>
1.563         or
1.563             subscription-manager repos --disable=<repoid>
1.563
1.563      5. Configure the failing repository to be skipped, if it is unavailable.
1.563         Note that yum will try to contact the repo. when it runs most commands,
1.563         so will have to try and fail each time (and thus. yum will be be much
1.563         slower). If it is a very temporary problem though, this is often a nice
1.563         compromise:
1.563
1.563             yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
1.563
1.563 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
------
failed to solve: process "/bin/sh -c yum install -y libzip unzip openssl-devel" did not complete successfully: exit code: 1
  • After applying this PR fix
[+] Building 253.1s (25/25) FINISHED                                                                                                                                                                                                                             docker:default
 => [build-release internal] load build definition from Dockerfile                                                                                                                                                                                                         0.0s
 => => transferring dockerfile: 2.16kB                                                                                                                                                                                                                                     0.0s
 => [build-release internal] load metadata for docker.io/library/centos:7                                                                                                                                                                                                  0.0s
 => [build-release internal] load .dockerignore                                                                                                                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                            0.0s
 => [build-release  1/21] FROM docker.io/library/centos:7                                                                                                                                                                                                                  0.0s
 => [build-release  2/21] RUN echo "sslverify=false" >> /etc/yum.conf                                                                                                                                                                                                      0.2s
 => [build-release  3/21] RUN sed -i "s/mirror.centos.org/vault.centos.org/g" /etc/yum.repos.d/*.repo                                                                                                                                                                      0.2s
 => [build-release  4/21] RUN sed -i "s/^#.*baseurl=http/baseurl=https/g" /etc/yum.repos.d/*.repo                                                                                                                                                                          0.2s
 => [build-release  5/21] RUN sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/*.repo                                                                                                                                                                                 0.2s
 => [build-release  6/21] RUN yum update -y                                                                                                                                                                                                                               23.7s
 => [build-release  7/21] RUN yum install -y centos-release-scl epel-release                                                                                                                                                                                               2.3s
 => [build-release  8/21] RUN sed -i "s/mirror.centos.org/vault.centos.org/g" /etc/yum.repos.d/*.repo                                                                                                                                                                      0.2s
 => [build-release  9/21] RUN sed -i "s/^#.*baseurl=http/baseurl=https/g" /etc/yum.repos.d/*.repo                                                                                                                                                                          0.2s
 => [build-release 10/21] RUN sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/*.repo                                                                                                                                                                                 0.2s
 => [build-release 11/21] RUN sed -i "s|^metalink=|#metalink=|g" /etc/yum.repos.d/epel.repo                                                                                                                                                                                0.2s
 => [build-release 12/21] RUN sed -i "s|https://download.fedoraproject.org/pub/epel|https://archives.fedoraproject.org/pub/archive/epel|g" /etc/yum.repos.d/epel.repo                                                                                                      0.2s
 => [build-release 13/21] RUN yum clean all && yum makecache                                                                                                                                                                                                             149.5s
 => [build-release 14/21] RUN yum install -y libzip unzip openssl-devel                                                                                                                                                                                                    4.1s
 => [build-release 15/21] RUN yum install -y devtoolset-11-gcc devtoolset-11-gcc-c++                                                                                                                                                                                      14.2s
 => [build-release 16/21] RUN echo '. /opt/rh/devtoolset-11/enable' >> ~/.bashrc                                                                                                                                                                                           0.2s
 => [build-release 17/21] RUN curl https://sh.rustup.rs > /rustup-init                                                                                                                                                                                                     0.3s
 => [build-release 18/21] RUN chmod +x /rustup-init                                                                                                                                                                                                                        0.2s
 => [build-release 19/21] RUN /rustup-init -y --default-toolchain nightly-2023-08-01-x86_64-unknown-linux-gnu                                                                                                                                                             31.2s
 => [build-release 20/21] RUN yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel                                                                                                                                                                                  18.1s
 => [build-release 21/21] RUN echo 'export JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk"' >> ~/.bashrc                                                                                                                                                                       0.2s
 => [build-release] exporting to image                                                                                                                                                                                                                                     7.4s
 => => exporting layers                                                                                                                                                                                                                                                    7.4s
 => => writing image sha256:ce3a03228b59dd7091127d5481ebee21ca90b88e275d98002ad61ed04aee44af                                                                                                                                                                               0.0s
 => => naming to docker.io/library/docker-build-build-release                                                                                                                                                                                                              0.0s
[+] Running 2/1
 ✔ Network docker-build_default            Created                                                                                                                                                                                                                         0.1s
 ✔ Container docker-build-build-release-1  Created

What changes are included in this PR?

Fixed the error issue with the CentOS 7 image.

Are there any user-facing changes?

No.

How was this patch tested?

CI.

@slfan1989 slfan1989 marked this pull request as ready for review October 7, 2025 09:21
Co-authored-by: Shreyesh <shreyesh.arangath@gmail.com>
@slfan1989
Copy link
Contributor Author

@cxzl25 Thank you very much for reviewing the code!

@richox richox merged commit 2a98883 into apache:master Oct 9, 2025
84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix CentOS 7 Dockerfile build failure

4 participants