This is an automated email from the ASF dual-hosted git repository.
gehafearless pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
The following commit(s) were added to refs/heads/master by this push:
new 7a5593fa4 fix(image): enable verifying certificate for CentOS 7 (#1941)
7a5593fa4 is described below
commit 7a5593fa4a00565a48d4b72a8c7a399e2e0033a4
Author: Dan Wang <[email protected]>
AuthorDate: Mon Mar 11 11:07:57 2024 +0800
fix(image): enable verifying certificate for CentOS 7 (#1941)
#1940
The problem is that docker image for compilation environment failed to be
built due to "cannot verify archive.apache.org's certificate":
#8 [4/6] RUN wget --progress=dot:giga
https://archive.apache.org/dist/maven/maven-3/3.8.3/binaries/apache-maven-3.8.3-bin.tar.gz
-P /opt/maven && cd /opt/maven && tar -zxf
apache-maven-3.8.3-bin.tar.gz && rm apache-maven-3.8.3-bin.tar.gz
#8 0.086 --2024-03-08 08:48:50--
https://archive.apache.org/dist/maven/maven-3/3.8.3/binaries/apache-maven-3.8.3-bin.tar.gz
#8 0.092 Resolving archive.apache.org (archive.apache.org)...
65.108.204.189, 2a01:4f9:1a:a084::2
#8 0.124 Connecting to archive.apache.org
(archive.apache.org)|65.108.204.189|:443... connected.
#8 0.479 ERROR: cannot verify archive.apache.org's certificate, issued by
'/C=US/O=Let\'s Encrypt/CN=R3':
#8 0.479 Issued certificate has expired.
#8 0.479 To connect to archive.apache.org insecurely, use
`--no-check-certificate'.
#8 ERROR: process "/bin/sh -c wget --progress=dot:giga
https://archive.apache.org/dist/maven/maven-3/3.8.3/binaries/apache-maven-3.8.3-bin.tar.gz
-P /opt/maven && cd /opt/maven && tar -zxf
apache-maven-3.8.3-bin.tar.gz && rm apache-maven-3.8.3-bin.tar.gz" did not
complete successfully: exit code: 5
------
> [4/6] RUN wget --progress=dot:giga
https://archive.apache.org/dist/maven/maven-3/3.8.3/binaries/apache-maven-3.8.3-bin.tar.gz
-P /opt/maven && cd /opt/maven && tar -zxf
apache-maven-3.8.3-bin.tar.gz && rm apache-maven-3.8.3-bin.tar.gz:
connected.
0.479 ERROR: cannot verify archive.apache.org's certificate, issued by
'/C=US/O=Let\'s Encrypt/CN=R3':
0.479 Issued certificate has expired.
0.479 To connect to archive.apache.org insecurely, use
`--no-check-certificate'.
To solve this problem, ca-certificates was installed. After fixed,
apache-maven-3.8.3-bin.tar.gz was downloaded successfully as below:
#8 [4/6] RUN wget --progress=dot:giga
https://archive.apache.org/dist/maven/maven-3/3.8.3/binaries/apache-maven-3.8.3-bin.tar.gz
-P /opt/maven && cd /opt/maven && tar -zxf
apache-maven-3.8.3-bin.tar.gz && rm apache-maven-3.8.3-bin.tar.gz
#8 0.086 --2024-03-08 09:32:09--
https://archive.apache.org/dist/maven/maven-3/3.8.3/binaries/apache-maven-3.8.3-bin.tar.gz
#8 0.092 Resolving archive.apache.org (archive.apache.org)...
65.108.204.189, 2a01:4f9:1a:a084::2
#8 0.098 Connecting to archive.apache.org
(archive.apache.org)|65.108.204.189|:443... connected.
#8 0.451 HTTP request sent, awaiting response... 200 OK
#8 0.569 Length: 9042049 (8.6M) [application/x-gzip]
#8 0.569 Saving to: '/opt/maven/apache-maven-3.8.3-bin.tar.gz'
#8 1.287
#8 1.287 0K ........ 100% 838K=11s
#8 11.10
#8 11.10 2024-03-08 09:32:20 (838 KB/s) -
'/opt/maven/apache-maven-3.8.3-bin.tar.gz' saved [9042049/9042049]
#8 11.10
#8 DONE 11.2s
---
docker/pegasus-build-env/centos7/Dockerfile | 1 +
1 file changed, 1 insertion(+)
diff --git a/docker/pegasus-build-env/centos7/Dockerfile
b/docker/pegasus-build-env/centos7/Dockerfile
index c8f8da664..790268202 100644
--- a/docker/pegasus-build-env/centos7/Dockerfile
+++ b/docker/pegasus-build-env/centos7/Dockerfile
@@ -49,6 +49,7 @@ RUN yum -y install centos-release-scl \
krb5-devel \
cyrus-sasl-devel \
patch; \
+ yum -y install ca-certificates; \
yum clean all; \
rm -rf /var/cache/yum;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]