blob: 87be6b8c41392e9555aa139ffdfd454a034a2822 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
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
RUN yum -y update \
glibc \
systemd && \
yum clean all
# 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 clean all
# Add wget.
RUN yum -y install \
wget && \
yum clean all
# Add the EPEL key.
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
# Add the Kolab:Winterfell repository.
RUN wget -q -O /etc/yum.repos.d/Kolab:Winterfell.repo \
http://obs.kolabsys.com/repositories/Kolab:/Winterfell/CentOS_7/Kolab:Winterfell.repo
# Give the Kolab:Winterfell repository priority over everything else.
RUN echo "priority=60" >> /etc/yum.repos.d/Kolab:Winterfell.repo
# Add the Kolab:Winterfell 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 \
cyrus-sasl-plain \
git \
lsof \
net-tools \
nmap-ncat \
openldap-clients \
psmisc \
strace \
telnet \
traceroute \
vim-enhanced && \
yum clean all
ADD /dbus.service /etc/systemd/system/dbus.service
RUN ln -sf dbus.service /etc/systemd/system/messagebus.service
ADD /httpd.service /etc/systemd/system/httpd.service
ADD /systemctl /usr/bin/systemctl
ADD /systemctl-socket-daemon /usr/bin/systemctl-socket-daemon
RUN chmod -v a+rx \
/usr/bin/systemctl \
/usr/bin/systemctl-socket-daemon
ADD /functions.sh /functions.sh
ADD /entrypoint.sh /entrypoint.sh
RUN chmod a+x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
|