From 68a884111c9a321215698dc1bbb92c21b47b52bc Mon Sep 17 00:00:00 2001 From: Sergey Petushkov Date: Thu, 4 Jul 2024 16:57:10 +0200 Subject: [PATCH] fix(ci): use vault repos for yum on centos7 (#2053) --- scripts/docker/centos7-epel-rpm.Dockerfile | 3 +++ scripts/docker/centos7-rpm.Dockerfile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/docker/centos7-epel-rpm.Dockerfile b/scripts/docker/centos7-epel-rpm.Dockerfile index 32ad5360f..94c258d75 100644 --- a/scripts/docker/centos7-epel-rpm.Dockerfile +++ b/scripts/docker/centos7-epel-rpm.Dockerfile @@ -3,6 +3,9 @@ FROM centos:7 ARG artifact_url="" ADD ${artifact_url} /tmp ADD node_modules /usr/share/mongodb-crypt-library-version/node_modules +# centos7 is eol, switch to vault repos +RUN yum-config-manager --disable base extras updates +RUN yum-config-manager --enable C7.8.2003-base C7.8.2003-extras C7.8.2003-updates RUN yum repolist # epel-release so that openssl11 is installable RUN yum install -y epel-release diff --git a/scripts/docker/centos7-rpm.Dockerfile b/scripts/docker/centos7-rpm.Dockerfile index 97e0a7216..f08ae9ece 100644 --- a/scripts/docker/centos7-rpm.Dockerfile +++ b/scripts/docker/centos7-rpm.Dockerfile @@ -3,6 +3,9 @@ FROM centos:7 ARG artifact_url="" ADD ${artifact_url} /tmp ADD node_modules /usr/share/mongodb-crypt-library-version/node_modules +# centos7 is eol, switch to vault repos +RUN yum-config-manager --disable base extras updates +RUN yum-config-manager --enable C7.8.2003-base C7.8.2003-extras C7.8.2003-updates RUN yum repolist RUN yum install -y /tmp/*mongosh*.rpm RUN /usr/bin/mongosh --build-info