From 2920955d1abbcf98143ceed321b5129680e0a67d Mon Sep 17 00:00:00 2001 From: Pavan Navarathna <6504783+pavannd1@users.noreply.github.com> Date: Tue, 13 Dec 2022 17:03:16 -0800 Subject: [PATCH] Download the mysql RPM file before install (#1787) --- docker/kanister-mysql/image/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/kanister-mysql/image/Dockerfile b/docker/kanister-mysql/image/Dockerfile index cb442c92d6..a8a2d7b46e 100644 --- a/docker/kanister-mysql/image/Dockerfile +++ b/docker/kanister-mysql/image/Dockerfile @@ -3,7 +3,10 @@ FROM registry.access.redhat.com/ubi8/ubi:8.1 as builder RUN dnf clean all && rm -rf /var/cache/dnf RUN dnf -y upgrade -RUN dnf install -y https://dev.mysql.com/get/mysql80-community-release-el8-1.noarch.rpm +# Download the RPM file to avoid timeouts during install +RUN curl -LO https://dev.mysql.com/get/mysql80-community-release-el8-1.noarch.rpm +# Install from the local file +RUN dnf install -y mysql80-community-release-el8-1.noarch.rpm # GPG keys for MySQL have expired. Importing the new key below. # Please refer bug https://bugs.mysql.com/bug.php?id=106188 for more details