summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-01-26 20:40:03 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-01-26 20:40:03 +0100
commit5ea9ae2cbfe5462e295d38ee13ccc531542a80bc (patch)
tree207304d4be25602e253f93f6668430e3d8b29e4a
parent24e3c2633d5482d5eee895e9c7fe5c2390e4c022 (diff)
downloaddocker-5ea9ae2cbfe5462e295d38ee13ccc531542a80bc.tar.gz
Disable the use of mirror lists
-rw-r--r--00-base/Dockerfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/00-base/Dockerfile b/00-base/Dockerfile
index 8c6959b..01eb2a2 100644
--- a/00-base/Dockerfile
+++ b/00-base/Dockerfile
@@ -10,6 +10,12 @@ RUN sed -r -i \
-e 's/^enabled.*$/enabled = 0/g' \
/etc/yum/pluginconf.d/fastestmirror.conf
+# Avoid using a mirrorlist (use a transparent proxy and cache everything instead).
+RUN sed -r -i \
+ -e 's/^mirrorlist/#mirrorlist/g' \
+ -e 's/^#baseurl/baseurl/g' \
+ /etc/yum.repos.d/*.repo
+
# Add EPEL.
RUN yum -y install epel-release && \
yum clean all