summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-02-05 19:10:50 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-02-05 19:10:50 +0100
commit4246840c2eaf0b4cbdd375729c7752bda6c7cabc (patch)
treee393923c81fa81ceb02b8b5fe556a13c6ca62f40
parentb5c677d36ade275a33ec2f7b79c6afddda6b3c0f (diff)
downloaddocker-4246840c2eaf0b4cbdd375729c7752bda6c7cabc.tar.gz
Clean up the image composing ever so slightly
-rw-r--r--03-jmap-proxy/Dockerfile22
1 files changed, 21 insertions, 1 deletions
diff --git a/03-jmap-proxy/Dockerfile b/03-jmap-proxy/Dockerfile
index b4d4ce9..1575196 100644
--- a/03-jmap-proxy/Dockerfile
+++ b/03-jmap-proxy/Dockerfile
@@ -1,8 +1,28 @@
FROM docker.io/library/centos:centos7
MAINTAINER Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>
+# This should really be a part of the base image.
+RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
+
+# To speed things up, disable fastestmirror.
+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 -y install \
+ yum clean all
+
+# Add the EPEL key.
+RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
+
+RUN yum -y install \
@fedora-packager \
gcc \
libuuid-devel \