Skip to content

Commit

Permalink
fix(centos): centos needs a yum clean (#541)
Browse files Browse the repository at this point in the history
* fix(centos): we need to yum clean for the sed to work

* fix(centos): eat any error so we're centos7 and amazonlinux compatible
  • Loading branch information
hutchic authored and gszr committed Feb 4, 2022
1 parent de679c7 commit 74f3a1c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ ARG KONG_SHA256="36c03c53a4e3a3f6f0968f68258fa93a584af5c33ed29fa5e05e089dfb97b73

# hadolint ignore=DL3033
RUN set -ex; \
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*; \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*; \
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* || true; \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-* || true; \
yum clean all; \
if [ "$ASSET" = "ce" ] ; then \
curl -fL https://download.konghq.com/gateway-${KONG_VERSION%%.*}.x-centos-7/Packages/k/kong-$KONG_VERSION.el7.amd64.rpm -o /tmp/kong.rpm \
&& echo "$KONG_SHA256 /tmp/kong.rpm" | sha256sum -c -; \
Expand Down

0 comments on commit 74f3a1c

Please sign in to comment.