summaryrefslogtreecommitdiffstats
path: root/00-base/Dockerfile
blob: f3dd4632aa84bc4fa6af6d110e6501f31f2ab1a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM centos:centos7

MAINTAINER Jeroen van Meeuwen <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

# Add EPEL.
RUN yum -y install epel-release && \
    yum clean all

# Add the EPEL key.
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

# Add the Kolab:Development repository.
ADD http://obs.kolabsys.com/repositories/Kolab:/Development/CentOS_7/Kolab:Development.repo \
    /etc/yum.repos.d/Kolab:Development.repo

# Give the Kolab:Development repository priority over everything else.
RUN echo "priority=60" >> /etc/yum.repos.d/Kolab:Development.repo

# Add the Kolab:Development key.
RUN rpm --import https://ssl.kolabsys.com/community.asc

# Make YUM obey priorities configured.
RUN yum -y install yum-plugin-priorities && \
    yum clean all

# Install some debugging utilities.
RUN yum -y install \
        bind-utils \
        cyrus-imapd \
        lsof \
        net-tools \
        nmap-ncat \
        openldap-clients \
        psmisc \
        strace \
        telnet \
        traceroute \
        vim-enhanced && \
    yum clean all

ADD /functions.sh /functions.sh
ADD /entrypoint.sh /entrypoint.sh
RUN chmod a+x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]