From 433dbb4e50fe214379627bacea67cfd069a74bdb Mon Sep 17 00:00:00 2001 From: Dean Coakley Date: Fri, 14 Apr 2023 15:42:08 +0100 Subject: [PATCH] Fix replace usage of flaky epel repo (#289) * Replace usage of fedora epel repo with oracle repo * Lint --- scripts/docker/nginx-oss/rpm/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/docker/nginx-oss/rpm/Dockerfile b/scripts/docker/nginx-oss/rpm/Dockerfile index fe6558cad..aaa73490a 100644 --- a/scripts/docker/nginx-oss/rpm/Dockerfile +++ b/scripts/docker/nginx-oss/rpm/Dockerfile @@ -12,13 +12,13 @@ COPY ./ /agent COPY $ENTRY_POINT /agent/entrypoint.sh RUN if [ "$OS_VERSION" = "7" ] && [ "$OS_RELEASE" = "oraclelinux" ]; \ - then yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm ; \ - fi + then yum install -y oracle-epel-release-el7; \ + fi RUN if [ "$OS_RELEASE" = "amazonlinux" ]; \ - then amazon-linux-extras enable epel && yum clean metadata \ - && yum install -y epel-release shadow-utils.x86_64; \ + then amazon-linux-extras enable epel && yum clean metadata \ + && yum install -y epel-release shadow-utils; \ fi RUN set -x \