Disable fastestmirror plug-in for centos7
@@ -4,7 +4,9 @@ ARG BUILDARCH
# Install required packages.
COPY google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo
-RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
+# Disable "fastestmirror" plug-in, because it takes a long time.
+RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf && \
+ yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
yum install -y \
bind-utils \
dpkg-dev \
