Base all on xenial to save some space loading chunks, clean-up images
parent
b0db732e87
commit
5d0081a0ec
|
@ -2,22 +2,28 @@ From ubuntu:xenial
|
||||||
MAINTAINER Andre Peters <andre.peters@servercow.de>
|
MAINTAINER Andre Peters <andre.peters@servercow.de>
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
ENV LC_ALL C
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN dpkg-divert --local --rename --add /sbin/initctl \
|
||||||
&& apt-get -y install dovecot-common \
|
&& ln -sf /bin/true /sbin/initctl \
|
||||||
dovecot-core \
|
&& dpkg-divert --local --rename --add /usr/bin/ischroot \
|
||||||
dovecot-imapd \
|
&& ln -sf /bin/true /usr/bin/ischroot
|
||||||
dovecot-lmtpd \
|
|
||||||
dovecot-managesieved \
|
RUN apt-get update
|
||||||
dovecot-sieve \
|
RUN apt-get -y install dovecot-common \
|
||||||
dovecot-mysql \
|
dovecot-core \
|
||||||
dovecot-pop3d \
|
dovecot-imapd \
|
||||||
dovecot-dev \
|
dovecot-lmtpd \
|
||||||
wget \
|
dovecot-managesieved \
|
||||||
curl \
|
dovecot-sieve \
|
||||||
build-essential \
|
dovecot-mysql \
|
||||||
autotools-dev \
|
dovecot-pop3d \
|
||||||
automake
|
dovecot-dev \
|
||||||
|
wget \
|
||||||
|
curl \
|
||||||
|
build-essential \
|
||||||
|
autotools-dev \
|
||||||
|
automake
|
||||||
|
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
RUN wget http://hg.dovecot.org/dovecot-antispam-plugin/archive/tip.tar.gz -O - | tar xvz \
|
RUN wget http://hg.dovecot.org/dovecot-antispam-plugin/archive/tip.tar.gz -O - | tar xvz \
|
||||||
|
@ -31,6 +37,7 @@ COPY ./rspamd-pipe /usr/local/bin/rspamd-pipe
|
||||||
COPY ./docker-entrypoint.sh /
|
COPY ./docker-entrypoint.sh /
|
||||||
|
|
||||||
RUN chmod +x /usr/local/bin/rspamd-pipe
|
RUN chmod +x /usr/local/bin/rspamd-pipe
|
||||||
|
|
||||||
RUN groupadd -g 5000 vmail
|
RUN groupadd -g 5000 vmail
|
||||||
RUN useradd -g vmail -u 5000 vmail -d /var/vmail
|
RUN useradd -g vmail -u 5000 vmail -d /var/vmail
|
||||||
|
|
||||||
|
@ -38,3 +45,5 @@ EXPOSE 24 10001
|
||||||
|
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
CMD ["/usr/sbin/dovecot", "-F"]
|
CMD ["/usr/sbin/dovecot", "-F"]
|
||||||
|
|
||||||
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
FROM debian:jessie
|
FROM ubuntu:xenial
|
||||||
MAINTAINER Andre Peters <andre.peters@debinux.de>
|
MAINTAINER Andre Peters <andre.peters@debinux.de>
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
ENV LC_ALL C
|
||||||
|
|
||||||
RUN echo 'deb http://repo.powerdns.com/debian jessie-rec-40 main' > /etc/apt/sources.list.d/pdns.list
|
RUN dpkg-divert --local --rename --add /sbin/initctl \
|
||||||
|
&& ln -sf /bin/true /sbin/initctl \
|
||||||
|
&& dpkg-divert --local --rename --add /usr/bin/ischroot \
|
||||||
|
&& ln -sf /bin/true /usr/bin/ischroot
|
||||||
|
|
||||||
|
RUN echo 'deb http://repo.powerdns.com/ubuntu xenial-rec-40 main' > /etc/apt/sources.list.d/pdns.list
|
||||||
|
|
||||||
RUN echo 'Package: pdns-*\n\
|
RUN echo 'Package: pdns-*\n\
|
||||||
Pin: origin repo.powerdns.com\n\
|
Pin: origin repo.powerdns.com\n\
|
||||||
|
@ -16,3 +22,5 @@ RUN apt-key adv --fetch-keys http://repo.powerdns.com/FD380FBB-pub.asc \
|
||||||
CMD ["/usr/sbin/pdns_recursor"]
|
CMD ["/usr/sbin/pdns_recursor"]
|
||||||
|
|
||||||
EXPOSE 53/udp
|
EXPOSE 53/udp
|
||||||
|
|
||||||
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
|
@ -2,24 +2,31 @@ From ubuntu:xenial
|
||||||
MAINTAINER Andre Peters <andre.peters@servercow.de>
|
MAINTAINER Andre Peters <andre.peters@servercow.de>
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
ENV LC_ALL C
|
||||||
|
|
||||||
|
RUN dpkg-divert --local --rename --add /sbin/initctl \
|
||||||
|
&& ln -sf /bin/true /sbin/initctl \
|
||||||
|
&& dpkg-divert --local --rename --add /usr/bin/ischroot \
|
||||||
|
&& ln -sf /bin/true /usr/bin/ischroot
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y --no-install-recommends supervisor \
|
||||||
RUN apt-get -y install supervisor \
|
|
||||||
postfix \
|
postfix \
|
||||||
sasl2-bin \
|
sasl2-bin \
|
||||||
postfix \
|
postfix \
|
||||||
postfix-mysql \
|
postfix-mysql \
|
||||||
postfix-pcre \
|
postfix-pcre \
|
||||||
rsyslog \
|
syslog-ng \
|
||||||
|
syslog-ng-core \
|
||||||
ca-certificates
|
ca-certificates
|
||||||
|
|
||||||
|
RUN sed -i -E 's/^(\s*)system\(\);/\1unix-stream("\/dev\/log");/' /etc/syslog-ng/syslog-ng.conf
|
||||||
|
|
||||||
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
||||||
COPY postfix.sh /opt/postfix.sh
|
COPY postfix.sh /opt/postfix.sh
|
||||||
|
|
||||||
RUN groupadd -g 5000 vmail
|
|
||||||
RUN useradd -g vmail -u 5000 vmail -d /var/vmail
|
|
||||||
|
|
||||||
EXPOSE 588
|
EXPOSE 588
|
||||||
|
|
||||||
CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
|
CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
|
||||||
|
|
||||||
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
[supervisord]
|
[supervisord]
|
||||||
nodaemon=true
|
nodaemon=true
|
||||||
|
|
||||||
[program:rsyslog]
|
[program:syslog-ng]
|
||||||
command=/usr/sbin/rsyslogd -n
|
command=/usr/sbin/syslog-ng --foreground --no-caps
|
||||||
autostart=true
|
|
||||||
autorestart=true
|
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
|
autostart=true
|
||||||
|
stdout_syslog=true
|
||||||
|
|
||||||
[program:postfix]
|
[program:postfix]
|
||||||
command=/opt/postfix.sh
|
command=/opt/postfix.sh
|
||||||
|
|
|
@ -1,18 +1,23 @@
|
||||||
FROM debian:jessie
|
FROM ubuntu:xenial
|
||||||
MAINTAINER Andre Peters <andre.peters@servercow.de>
|
MAINTAINER Andre Peters <andre.peters@servercow.de>
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
ENV LC_ALL C
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN dpkg-divert --local --rename --add /sbin/initctl \
|
||||||
&& apt-get install -y wget \
|
&& ln -sf /bin/true /sbin/initctl \
|
||||||
&& wget -O- https://rspamd.com/apt-stable/gpg.key | apt-key add - \
|
&& dpkg-divert --local --rename --add /usr/bin/ischroot \
|
||||||
&& echo "deb http://rspamd.com/apt-stable/ jessie main" > /etc/apt/sources.list.d/rspamd.list \
|
&& ln -sf /bin/true /usr/bin/ischroot
|
||||||
&& echo "deb-src http://rspamd.com/apt-stable/ jessie main" >> /etc/apt/sources.list.d/rspamd.list \
|
|
||||||
|
RUN apt-key adv --fetch-keys http://rspamd.com/apt-stable/gpg.key \
|
||||||
|
&& echo "deb http://rspamd.com/apt-stable/ xenial main" > /etc/apt/sources.list.d/rspamd.list \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get --no-install-recommends -y --force-yes install rmilter
|
&& apt-get --no-install-recommends -y --force-yes install rmilter
|
||||||
|
|
||||||
CMD ["/usr/sbin/rmilter","-n", "-c", "/etc/rmilter.conf.d/rmilter.conf"]
|
CMD ["/usr/sbin/rmilter","-n", "-c", "/etc/rmilter.conf.d/rmilter.conf"]
|
||||||
|
|
||||||
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
USER _rmilter
|
USER _rmilter
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
FROM debian:jessie
|
FROM ubuntu:xenial
|
||||||
MAINTAINER Andre Peters <andre.peters@debinux.de>
|
MAINTAINER Andre Peters <andre.peters@debinux.de>
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
ENV LC_ALL C
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN dpkg-divert --local --rename --add /sbin/initctl \
|
||||||
&& apt-get install -y wget \
|
&& ln -sf /bin/true /sbin/initctl \
|
||||||
&& wget -O- https://rspamd.com/apt-stable/gpg.key | apt-key add - \
|
&& dpkg-divert --local --rename --add /usr/bin/ischroot \
|
||||||
&& echo "deb http://rspamd.com/apt-stable/ jessie main" > /etc/apt/sources.list.d/rspamd.list \
|
&& ln -sf /bin/true /usr/bin/ischroot
|
||||||
&& echo "deb-src http://rspamd.com/apt-stable/ jessie main" >> /etc/apt/sources.list.d/rspamd.list \
|
|
||||||
&& apt-get update \
|
RUN apt-key adv --fetch-keys http://rspamd.com/apt-stable/gpg.key \
|
||||||
&& apt-get --no-install-recommends -y --force-yes install rspamd
|
&& echo "deb http://rspamd.com/apt-stable/ xenial main" > /etc/apt/sources.list.d/rspamd.list \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get --no-install-recommends -y --force-yes install rspamd
|
||||||
|
|
||||||
RUN echo '.include $LOCAL_CONFDIR/local.d/rspamd.conf.local' > /etc/rspamd/rspamd.conf.local
|
RUN echo '.include $LOCAL_CONFDIR/local.d/rspamd.conf.local' > /etc/rspamd/rspamd.conf.local
|
||||||
# "Hardcoded" - we need them
|
# "Hardcoded" - we need them
|
||||||
|
@ -17,6 +20,8 @@ RUN echo 'settings = "http://nginx:8081/settings.php";' > /etc/rspamd/modules.d/
|
||||||
|
|
||||||
CMD ["/usr/bin/rspamd","-f", "-u", "_rspamd", "-g", "_rspamd"]
|
CMD ["/usr/bin/rspamd","-f", "-u", "_rspamd", "-g", "_rspamd"]
|
||||||
|
|
||||||
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
USER _rspamd
|
USER _rspamd
|
||||||
|
|
||||||
EXPOSE 11333 11334
|
EXPOSE 11333 11334
|
||||||
|
|
|
@ -2,6 +2,12 @@ FROM ubuntu:xenial
|
||||||
MAINTAINER Andre Peters <andre.peters@servercow.de>
|
MAINTAINER Andre Peters <andre.peters@servercow.de>
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
ENV LC_ALL C
|
||||||
|
|
||||||
|
RUN dpkg-divert --local --rename --add /sbin/initctl \
|
||||||
|
&& ln -sf /bin/true /sbin/initctl \
|
||||||
|
&& dpkg-divert --local --rename --add /usr/bin/ischroot \
|
||||||
|
&& ln -sf /bin/true /usr/bin/ischroot
|
||||||
|
|
||||||
ENV GOSU_VERSION 1.9
|
ENV GOSU_VERSION 1.9
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
|
@ -30,3 +36,4 @@ EXPOSE 20000
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
|
CMD exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
|
||||||
|
|
||||||
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
until mysql -u ${DBUSER} -p${DBPASS} ${DBNAME} -e ""; do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
mkdir -p /var/lib/sogo/GNUstep/Defaults/
|
mkdir -p /var/lib/sogo/GNUstep/Defaults/
|
||||||
|
|
||||||
# Generate plist header with timezone data
|
# Generate plist header with timezone data
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
EEFos0swXBmY5rfy:7xKWGpXVC4w5vGNnJNa09o9X
|
t5sqobb5szmj0of4:7gwo90wwbvpp5lfefwwfl1vu
|
||||||
|
|
Loading…
Reference in New Issue