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 committed Feb 3, 2022
1 parent 6c67c80 commit d47ddd4
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="d3769c15297d1b1b20cf684792a664ac851977b2c466f2776f2ae705708539e

# 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-8/Packages/k/kong-$KONG_VERSION.el8.amd64.rpm -o /tmp/kong.rpm \
&& echo "$KONG_SHA256 /tmp/kong.rpm" | sha256sum -c -; \
Expand Down

0 comments on commit d47ddd4

Please sign in to comment.