Skip to content

Commit

Permalink
Fix replace usage of flaky epel repo (#289)
Browse files Browse the repository at this point in the history
* Replace usage of fedora epel repo with oracle repo
* Lint
  • Loading branch information
Dean-Coakley authored Apr 14, 2023
1 parent d6dd83b commit 433dbb4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/docker/nginx-oss/rpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 433dbb4

Please sign in to comment.